PHP.nl

sodium_base642bin

sodium_base642bin

Decodes a base64-encoded string into raw binary.

string **sodium_base642bin** string $string int $id string $ignore

Converts a base64 encoded string into raw binary. Unlike , is constant-time (a property that is important for any code that touches cryptographic inputs, such as plaintexts or keys) and supports multiple character sets. base64_decode``sodium_base642bin

string ; Encoded string. string

id``SODIUM_BASE64_VARIANT_ORIGINAL``A-Za-z0-9/\+``SODIUM_BASE64_VARIANT_ORIGINAL_NO_PADDING``A-Za-z0-9/\+``=``SODIUM_BASE64_VARIANT_URLSAFE``A-Za-z0-9\-_``SODIUM_BASE64_VARIANT_URLSAFE_NO_PADDING``A-Za-z0-9\-_``=``ignoreCharacters to ignore when decoding (e.g. whitespace characters).

Decoded string.