Registry / crypto / cipher

cipher

JSON →
library0.5.2rscratesunverified

Traits for describing block ciphers and stream ciphers in Rust.

# Cargo.toml [dependencies] cipher = "0.5.2"
INSTALL
IMPORT
SIG · CIPHER
C
cipher
cryptorustv0.5.2
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.

BlockCipher
✓ use cipher::{BlockCipher, StreamCipher};

Demonstrates using the cipher traits with a concrete AES implementation.

use cipher::{BlockCipher, KeyInit, generic_array::GenericArray}; fn main() { let key = GenericArray::from_slice(b"an example key.."); let cipher = aes::Aes128::new(key); println!("Cipher initialized"); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.5.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
20 hits · last 30 days
node
18
Resources
cipher — cargo add cipher · libregistry