Registry / crypto / rust-crypto

rust-crypto

JSON →
library0.2.36rscratesunverified

A (mostly) pure-Rust implementation of various common cryptographic algorithms.

# Cargo.toml [dependencies] rust-crypto = "0.2.36"
INSTALL
IMPORT
SIG · RUST-CRYPTO
R
rust-crypto
cryptorustv0.2.36
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.

Digest
✓ use crypto::digest::Digest;

Compute SHA-256 hash of a string using rust-crypto.

use crypto::digest::Digest; use crypto::sha2::Sha256; fn main() { let mut hasher = Sha256::new(); hasher.input_str("hello world"); let hex = hasher.result_str(); println!("SHA256: {}", hex); }
Debug
Known issues
breakingThis crate is unmaintained and may have security issues; prefer `sha2` or `ring`.
fix
Migrate to actively maintained crates like `sha2`, `aes-gcm`, or `ring`.
affects: >=0.2.0
Upgrade
Version history
0.2.36latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
21 hits · last 30 days
node
20
Resources
rust-crypto — cargo add rust-crypto · libregistry