Encoding & cryptographyReference
crypt.base64decode
Decode Base64 text into the original bytes.
Aliases
base64decodebase64_decodebase64.decodecrypt.base64_decodecrypt.base64.decodeDetails#
Decode Base64 text into the original bytes. Decoded binary string. Invalid input raises 'invalid base64'.
Signature#
crypt.base64decode(data: string): stringParameters#
| Parameter | Type | Description |
|---|---|---|
data | string | Base64-encoded input. |
Returns#
Decoded binary string. Invalid input raises 'invalid base64'.
Examples#
Local example
print(crypt.base64decode("aGVsbG8=")) -- hello