Go to main content

base64_decode

Decodes data with MIME base64

BASE64_DECODE

NAME

base64_decode - Decodes data with MIME base64

SYNOPSIS

base64_decode(data,modified)

PARAMETERS

data
The data to decode. The "Modified" argument will work with extenso only. (By default, it is set to true)

DESCRIPTION

The Base64 is an encoding that represents binary-data in an ASCII string format. It translates the data inot a 64-characters base representation. It is mostly used for emails via MIME (multipurpose internet mail extensions). This program is used to decode data with MIME base 64. (source: http://en.wikipedia.org/wiki/Base64)

RETURN

string
The decoded data, as a string.
modified
base64_decode can work with different character based on the modified flag which is a boolean. By default the value is true.

if modified is false then the caracter set supported are ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789:-
 
If modified is true then the character set supported are ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/

EXAMPLES

in:  res={{ base64_decode("c29tZSB0ZXh0IHRvIGJlIGNvdmVydGVk",true) }}.
out: res=some text to be coverted.

SEE ALSO

{{ include("includes/strings.sn") }}

AUTHOR

Written by Pusnei Sergey and Caroline Laplante, <sergey@sednove.com>

MODIFICATIONS

1.0 2014-09-09 21:24:14 laplante@sednove.com

Edit

© 2024 extenso Inc. All rights reserved.