Registry / crypto / base64ct

base64ct

JSON →
library1.8.3rscratesunverified

Pure Rust implementation of Base64 (RFC 4648) which avoids any usages of data-dependent branches/LUTs and thereby provides portable 'best effort' constant-time operation and embedded-friendly no_std support

# Cargo.toml [dependencies] base64ct = "1.8.3"
INSTALL
IMPORT
SIG · BASE64CT
B
base64ct
cryptorustv1.8.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Base64
use base64ct::Base64;

Encodes and decodes data using constant-time Base64.

use base64ct::{Base64, Encoding}; let data = b"Hello, world!"; let encoded = Base64::encode_string(data); println!("{}", encoded); let decoded = Base64::decode_vec(&encoded).unwrap(); assert_eq!(&decoded, data);
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.8.3latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
24 hits · last 30 days
node
20
Resources
base64ct — cargo add base64ct · libregistry