Skip to content

u8vector base64 string

Chris Petersen edited this page Nov 4, 2015 · 1 revision

Encodes a vector to a base64 string. The width parameter inserts line breaks to limit the string width.

Parameter Description
u8v vector to encode
width optional string width

Example

> (u8vector->base64-string '#u8(29 202 3 85 208 187 73 219))
"HcoDVdC7Sds="
> (u8vector->base64-string '#u8(29 202 3 85 208 187 73 219) 5)
"HcoDV\ndC7Sd\ns="
Clone this wiki locally