base64_encode.
Parameters
string
required
The string to encode.
Returns
string
The Base64 text.
Example
Errors
Related
base64decode: decode it back.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Encode a string as Base64.
base64encode(data: string) -> string
base64_encode.
print(base64encode("hello")) -- aGVsbG8=
| Message | Condition |
|---|---|
argument 1 must be a string to encode | Argument 1 was not a string. |
base64decode: decode it back.