This PR introduces the Base64 Library, which has the following key function methods:
function method Decode(s: seq<char>): (b: Result<seq<uint8>>)
which takes a string, and returns a sequence of unsigned bytes when the string is of Base64 encoding, or a failure otherwise,
and
function method Encode(b: seq<uint8>): (s: seq<char>)
ensures Decode(s) == Success(b)
which takes a sequence of unsigned bytes and returns an encoded string with the Base64 scheme, and guarantees that the Decode function will be able to successfully decode the output of the Encode function.
This PR introduces the Base64 Library, which has the following key function methods:
which takes a string, and returns a sequence of unsigned bytes when the string is of Base64 encoding, or a failure otherwise,
and
which takes a sequence of unsigned bytes and returns an encoded string with the Base64 scheme, and guarantees that the
Decode
function will be able to successfully decode the output of theEncode
function.