Encoding
Class Encoding
- Full name:
\ParagonIE\ConstantTime\Encoding
- This class is an Abstract class
Methods
base32Encode
RFC 4648 Base32 encoding
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$str |
string |
Throws:
base32EncodeUpper
RFC 4648 Base32 encoding
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$str |
string |
Throws:
base32Decode
RFC 4648 Base32 decoding
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$str |
string |
Throws:
base32DecodeUpper
RFC 4648 Base32 decoding
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$str |
string |
Throws:
base32HexEncode
RFC 4648 Base32 encoding
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$str |
string |
Throws:
base32HexEncodeUpper
RFC 4648 Base32Hex encoding
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$str |
string |
Throws:
base32HexDecode
RFC 4648 Base32Hex decoding
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$str |
string |
Throws:
base32HexDecodeUpper
RFC 4648 Base32Hex decoding
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$str |
string |
Throws:
base64Encode
RFC 4648 Base64 encoding
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$str |
string |
Throws:
base64Decode
RFC 4648 Base64 decoding
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$str |
string |
Throws:
base64EncodeDotSlash
Encode into Base64
Base64 character set "./[A-Z][a-z][0-9]"
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$str |
string |
Throws:
base64DecodeDotSlash
Decode from base64 to raw binary
Base64 character set "./[A-Z][a-z][0-9]"
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$str |
string |
Throws:
base64EncodeDotSlashOrdered
Encode into Base64
Base64 character set "[.-9][A-Z][a-z]" or "./[0-9][A-Z][a-z]"
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$str |
string |
Throws:
base64DecodeDotSlashOrdered
Decode from base64 to raw binary
Base64 character set "[.-9][A-Z][a-z]" or "./[0-9][A-Z][a-z]"
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$str |
string |
Throws:
hexEncode
Convert a binary string into a hexadecimal string without cache-timing leaks
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$bin_string |
string | (raw binary) |
Throws:
hexDecode
Convert a hexadecimal string into a binary string without cache-timing leaks
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$hex_string |
string |
Return Value:
(raw binary)
Throws:
hexEncodeUpper
Convert a binary string into a hexadecimal string without cache-timing leaks
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$bin_string |
string | (raw binary) |
Throws:
hexDecodeUpper
Convert a binary string into a hexadecimal string without cache-timing leaks
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$bin_string |
string | (raw binary) |
Automatically generated on 2025-03-18