Registry / crypto / sha256

sha256

JSON →
library1.6.0rscratesunverified

SHA-256 cryptographic digest implementation for Rust.

# Cargo.toml [dependencies] sha256 = "1.6.0"
INSTALL
IMPORT
SIG · SHA256
S
sha256
cryptorustv1.6.0
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 sha256::digest;

Computes the SHA-256 hash of a byte slice.

use sha256::digest; fn main() { let hash = digest(b"hello world"); println!("SHA-256: {}", hash); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.6.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
14
Resources
sha256 — cargo add sha256 · libregistry