Base32
in package
FinalYes
Provides Base32 encoding.
Table of Contents
Methods
- decode() : string|false
- Decodes data encoded with RFC4648 base32.
- encode() : string
- Encodes data with RFC4648 base32.
Methods
decode()
Decodes data encoded with RFC4648 base32.
public
static decode(string $string) : string|false
Parameters
- $string : string
-
The encoded data.
Return values
string|false —Returns the decoded data or false on failure. The returned data may be binary.
encode()
Encodes data with RFC4648 base32.
public
static encode(string $string) : string
Parameters
- $string : string
-
The data to encode.
Return values
string —The encoded data, as a string.