1 | <?php |
||
18 | class Base32Characters{ |
||
19 | |||
20 | /** |
||
21 | * RFC3548 |
||
22 | * |
||
23 | * The character set as defined by RFC3548 |
||
24 | * |
||
25 | * @link http://www.ietf.org/rfc/rfc3548.txt |
||
26 | */ |
||
27 | const RFC3548 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567'; |
||
28 | |||
29 | /** |
||
30 | * csSafe |
||
31 | * |
||
32 | * This character set is designed to be more human friendly |
||
33 | * For example: i, I, L, l and 1 all map to 1 |
||
34 | * Also: there is no U - to help prevent offencive output |
||
35 | * |
||
36 | * @link http://www.crockford.com/wrmg/base32.html |
||
37 | * |
||
38 | */ |
||
39 | const CROCKFORD = '0123456789ABCDEFGHJKMNPQRSTVWXYZ'; |
||
40 | |||
41 | /** |
||
42 | * cs09AV |
||
43 | * |
||
44 | * This character set follows the example of the hex |
||
45 | * character set and is included to make this class |
||
46 | * compatible with MIME::Base32 |
||
47 | * |
||
48 | * @link http://search.cpan.org/~danpeder/MIME-Base32-1.01/Base32.pm |
||
49 | * |
||
50 | */ |
||
51 | const MIME_09AV = '0123456789ABCDEFGHIJKLMNOPQRSTUV'; |
||
52 | |||
53 | } |
||
54 |