base64. Decoding from Base64   [3.1.5]

^string:base64[encoded]
^string:base64[encoded;
$.strict(true)]   [3.4.2]

Note: this is method, not a constructor!


Decodes a string from Base64 representation. To encode a string use
^string.base64[]

If option
$.strict(true) is specified the exception will be raised if all characters can not be decoded. Without this option the only charachers that are decoded successfully are returned.   [3.4.2]

Detailed information on MD5 is available here http://www.ietf.org/rfc/rfc2045.txt
and here http://en.wikipedia.org/wiki/Base64.

Example
$encoded[
pyAxOTczLiBUaGVyZSBhcmUgcnVtb3VycyB0aGF0IJNHcmVlbiBzbGVldmVzlCB3ZXJlIHdyaXR0
ZW4gYnmF
]
$original[^string:base64[$encoded]]
$original

Outputs…
§ 1973. There are rumours that "Green sleeves" were written by…


Copyright © 1997–2017 Art. Lebedev Studio | http://www.artlebedev.com Last updated: 18.06.2012