Method |
Description |
|
binToHex ( string $byte_string ) : string |
Converts a byte string to a hexadecimal string without leaking
information through side channels. |
|
hexToBin ( string $hex_string ) : string |
Converts a hexadecimal string into a byte string without leaking
information through side channels. |
|
loadBytesFromChecksummedAsciiSafeString ( string $expected_header, string $string ) : string |
INTERNAL USE ONLY: Decodes, verifies the header and checksum, and returns
the encoded byte string. |
|
saveBytesToChecksummedAsciiSafeString ( string $header, string $bytes ) : string |
INTERNAL USE ONLY: Applies a version header, applies a checksum, and
then encodes a byte string into a range of printable ASCII characters. |
|