Base32
Base32 encryption class
since |
1.0 |
---|---|
package |
Joomla CMS |
Methods
_mapbin
_mapbin
_mapbin( chr) :
Used with array_map to map the characters from a base32 character set directly into a binary string
access |
private |
---|
Arguments
- chr
string
The character to map
Response
string
String of 0's and 1's
_mapcharset
_mapcharset
_mapcharset( str) :
Used with array_map to map the bits from a binary string directly into a base32 character set
access |
private |
---|
Arguments
- str
string
The string of 0's and 1's you want to convert
Response
string
Resulting base32 character
bin2str
bin2str
bin2str( str) :
Converts a binary string to an ascii string
throws |
|
---|
Arguments
- str
string
The string of 0's and 1's you want to convert
Response
string
The ascii output
decode
toString
decode( str) :
Convert any base32 string to a normal sctring This should be binary safe...
Arguments
- str
string
The base32 string to convert
Response
string
The normal string
encode
fromString
encode( str) :
Convert any string to a base32 string This should be binary safe...
Arguments
- str
string
The string to convert
Response
string
The converted base32 string
fromBin
fromBin
fromBin( str) :
Converts a correct binary string to base32
throws |
|
---|
Arguments
- str
string
The string of 0's and 1's you want to convert
Response
string
String encoded as base32
str2bin
str2bin
str2bin( str) :
Converts any ascii string to a binary string
Arguments
- str
string
The string you want to convert
Response
string
String of 0's and 1's
toBin
toBin
toBin( str) :
Accepts a base32 string and returns an ascii binary string
throws |
|
---|
Arguments
- str
string
The base32 string to convert
Response
string
Ascii binary string
Constants
CSRFC3548
CSRFC3548
The character set as defined by RFC3548
Value | 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567' |
---|---|
link |