subtle-encoding 0.3.7

Encoders and decoders for common data encodings (base64, bech32, hex) which avoid data-dependent branching/table lookups and therefore provide "best effort" constant time. Useful for encoding/decoding secret values such as cryptographic keys.
Documentation
1
2
3
4
5
6
7
//! Use `std` or `alloc` prelude depending on selected cargo features

#[cfg(all(feature = "alloc", not(feature = "std")))]
pub use alloc::{string::String, vec::Vec};

#[cfg(feature = "std")]
pub use std::prelude::v1::*;