Base32
Class Base32 [A-Z][2-7]
- Full name:
\ParagonIE\ConstantTime\Base32
- This class implements:
\ParagonIE\ConstantTime\EncoderInterface
- This class is an Abstract class
Methods
decode
Decode a Base32-encoded string into raw binary
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$encodedString |
string | |
$strictPadding |
bool |
decodeUpper
Decode an uppercase Base32-encoded string into raw binary
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$src |
string | |
$strictPadding |
bool |
encode
Encode into Base32 (RFC 4648)
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$binString |
string |
Throws:
encodeUnpadded
Encode into Base32 (RFC 4648)
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$src |
string |
Throws:
encodeUpper
Encode into uppercase Base32 (RFC 4648)
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$src |
string |
Throws:
encodeUpperUnpadded
Encode into uppercase Base32 (RFC 4648)
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$src |
string |
Throws:
decode5Bits
Uses bitwise operators instead of table-lookups to turn 5-bit integers into 8-bit integers.
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$src |
int |
decode5BitsUpper
Uses bitwise operators instead of table-lookups to turn 5-bit integers into 8-bit integers.
Uppercase variant.
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$src |
int |
encode5Bits
Uses bitwise operators instead of table-lookups to turn 8-bit integers into 5-bit integers.
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$src |
int |
encode5BitsUpper
Uses bitwise operators instead of table-lookups to turn 8-bit integers into 5-bit integers.
Uppercase variant.
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$src |
int |
decodeNoPadding
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$encodedString |
string | |
$upper |
bool |
doDecode
Base32 decoding
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$src |
string | |
$upper |
bool | |
$strictPadding |
bool |
Throws:
doEncode
Base32 Encoding
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$src |
string | |
$upper |
bool | |
$pad |
bool |
Throws:
Automatically generated on 2025-03-18