Registry / crypto / const-sha1

const-sha1

JSON →
library0.3.0rscratesunverified

A SHA1 implementation for use in const contexts.

# Cargo.toml [dependencies] const-sha1 = "0.3.0"
INSTALL
IMPORT
SIG · CONST-SHA1
C
const-sha1
cryptorustv0.3.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.

sha1
use const_sha1::sha1;

Computes SHA1 hash of a byte string at compile time.

use const_sha1::sha1; const HASH: [u8; 20] = sha1(b"hello"); fn main() { println!("{:x?}", HASH); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.3.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
17 hits · last 30 days
node
14
Resources
const-sha1 — cargo add const-sha1 · libregistry