function

base64_decode . string . sncode

VERSIONlatest 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

Note: In the followings examples, the _ between the { should be removed to make it work.

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

AUTHOR

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

Modify by Pierre Laplante <laplante@sednove.com>