>base64 ( seq -- base64 )
Base64 conversions

Next:>base64-lines ( seq -- base64 )


Vocabulary
base64

Inputs
seqa sequence


Outputs
base64a string of base64 characters


Word description
Converts a sequence to its Base64 representation by taking six bits at a time as an index into a lookup table containing alphanumerics, '+', and '/'. The result is padded with '=' if the input was not a multiple of six bits.

Examples
USING: prettyprint base64 strings ; "The monorail is a free service." >base64 >string .
"VGhlIG1vbm9yYWlsIGlzIGEgZnJlZSBzZXJ2aWNlLg=="


See also
>base64-lines, base64>

Definition