Module base64

Source
Expand description

Base64 encoding with (almost) data-independent constant time(-ish) operation.

Adapted from this C++ implementation:

https://github.com/Sc00bz/ConstTimeEncoding/blob/master/base64.cpp

Copyright (c) 2014 Steve “Sc00bz” Thomas (steve at tobtu dot com) Derived code is dual licensed MIT + Apache 2 (with permission)

Structs§

Base64
Base64 Encoding (traditional non-URL-safe RFC 4648 version)

Functions§

decode
Decode the given data from Base64, returning a Vec<u8>
encode
Encode the given data as Base64, returning a Vec<u8>
encoder
Return a Base64 encoder