Aller au contenu principal

base64_encode

Encodes data with MIME base64

BASE64_ENCODE

NAME

base64_encode - Encodes data with MIME base64

SYNOPSIS

base64_encode(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 into a 64-characters base representation. It is mostly used for emails via MIME (multipurpose internet mail extensions). This program is used to encode arbitrary octet sequences into a form that satisfies the rules of 7bit. (source: http://en.wikipedia.org/wiki/Base64)

RETURN

string
The encoded 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_encode("some text to be coverted",true)}}.
out: res=c29tZSB0ZXh0IHRvIGJlIGNvdmVydGVk.

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

© 2022 extenso Inc. All rights reserved.