|
const | CSRFC3548 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567' |
|
◆ _mapbin()
_mapbin
Used with array_map to map the characters from a base32 character set directly into a binary string
- Paramètres
-
string | $chr | The caracter to map |
- Renvoie
- string String of 0's and 1's
private
◆ _mapcharset()
_mapcharset
Used with array_map to map the bits from a binary string directly into a base32 character set
- Paramètres
-
string | $str | The string of 0's and 1's you want to convert |
- Renvoie
- string Resulting base32 character
private
◆ bin2str()
bin2str
Converts a binary string to an ascii string
- Paramètres
-
string | $str | The string of 0's and 1's you want to convert |
- Renvoie
- string The ascii output
- Exceptions
-
◆ decode()
toString
Convert any base32 string to a normal sctring This should be binary safe...
- Paramètres
-
string | $str | The base32 string to convert |
- Renvoie
- string The normal string
◆ encode()
fromString
Convert any string to a base32 string This should be binary safe...
- Paramètres
-
string | $str | The string to convert |
- Renvoie
- string The converted base32 string
Référencé par FOFEncryptTotp\generateSecret().
◆ fromBin()
fromBin
Converts a correct binary string to base32
- Paramètres
-
string | $str | The string of 0's and 1's you want to convert |
- Renvoie
- string String encoded as base32
- Exceptions
-
◆ str2bin()
str2bin
Converts any ascii string to a binary string
- Paramètres
-
string | $str | The string you want to convert |
- Renvoie
- string String of 0's and 1's
◆ toBin()
toBin
Accepts a base32 string and returns an ascii binary string
- Paramètres
-
string | $str | The base32 string to convert |
- Renvoie
- string Ascii binary string
- Exceptions
-
◆ CSRFC3548
const CSRFC3548 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567' |
La documentation de cette classe a été générée à partir du fichier suivant :