Crates.io | ct-codecs |
lib.rs | ct-codecs |
version | 1.1.3 |
source | src |
created_at | 2020-03-23 22:08:21.346056 |
updated_at | 2024-12-09 11:54:46.944583 |
description | Constant-time hex and base64 codecs from libsodium reimplemented in Rust |
homepage | https://github.com/jedisct1/rust-ct-codecs |
repository | https://github.com/jedisct1/rust-ct-codecs |
max_upload_size | |
id | 221933 |
size | 21,426 |
A reimplementation of the base64 and hexadecimal codecs from libsodium and libhydrogen in Rust.
no_std
friendly.Links:
use ct_codecs::{Base64UrlSafe, Decoder, Encoder};
let encoded = Base64UrlSafe::encode_to_string(x)?;
let decoded = Base64UrlSafe::decode_to_vec(encoded, None)?;