base64Decode

fnubyte[] base64Decode(string encoded) @safe

Decodes a Base64 string to raw bytes.

Parameters

encodedThe Base64 string (may contain whitespace/newlines, which are ignored).

Returns

The decoded bytes.

Throws

CryptoException if the input contains invalid Base64 characters or

has incorrect padding.