Registry / crypto / rust-crypto-wasm

rust-crypto-wasm

JSON →
library0.3.1rscratesunverified

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

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

Sha256
use rust_crypto_wasm::sha2::Sha256;

Computes SHA-256 hash of a string.

use rust_crypto_wasm::sha2::{Sha256, Digest}; let mut hasher = Sha256::new(); hasher.update(b"hello world"); let result = hasher.finalize(); println!("{:x}", result);
Debug
Known issues
gotchaNot audited for production use; may have security vulnerabilities.
fix
Use well-audited crates like `sha2` or `ring` for security-critical applications.
affects: *
Upgrade
Version history
0.3.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

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