BASE64_DECODE
Last updated
Was this helpful?
Last updated
Was this helpful?
The function BASE64_DECODE decodes that has been encoded using .
This function accepts a String holding base64 encoded data and returns the decoded text of that data. Note that while base64 encoding can encode any arbitrary data, BASE64_DECODE only decodes plain text that was encoded. See for more details.
base64_data (required, type: string) A string containing base64 encoded data.
decoded_string (type: string) The decoded string.
The base64 encoding for the string "top secret!" is "dG9wIHNlY3JldCE=". This string can be decoded with BASE64_DECODE, making it not so top secret.
The function is the opposite operation to BASE64_DECODE. Rather than decoding a String, it will encode it. Encoding, and then decoding a String will produce the original String.