Awesome
cairo-base64
A library for base64 + base64url encoding multi character ascii felts.
'Man' => "TWFu"
'Ma' => "TWE="
'M' => "TQ=="
'abcd' => "YWJjZA=="
'abcde' => "YWJjZGU="
'abcdef' => "YWJjZGVm"
'abcdefg' => "YWJjZGVmZw=="
'abcdefgh' => "YWJjZGVmZ2g="
'abcdefghi' => "YWJjZGVmZ2hp"
'abcdefghij' => "YWJjZGVmZ2hpag=="
'abcdefghijk' => "YWJjZGVmZ2hpams=
Usage
let (encoded) = Base64.encode_single('abcdefghij')
assert encoded = 'YWJjZGVmZ2hpag=='
TODO: Support felt arrays.