Skip to content

cartridge-gg/cairo-base64

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Base64 encode felts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages