Registry / crypto / sha-1
library0.10.1rscratesunverified

SHA-1 hash function. This crate is deprecated! Use the sha1 crate instead.

# Cargo.toml [dependencies] sha-1 = "0.10.1"
INSTALL
IMPORT
SIG · SHA-1
S
sha-1
cryptorustv0.10.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.

Sha1
use sha1::Sha1;

Compute the SHA-1 hash of a string (using the recommended `sha1` crate).

use sha1::Sha1; let mut hasher = Sha1::new(); hasher.update(b"hello world"); let result = hasher.digest().to_string(); println!("{}", result);
Debug
Known issues
breakingThis crate is deprecated; use the `sha1` crate instead.
fix
Replace `sha-1` with `sha1` in Cargo.toml and update imports.
affects: >=0.10.0
Upgrade
Version history
0.10.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
17 hits · last 30 days
node
16
Resources
sha-1 — cargo add sha-1 · libregistry