Registry / crypto / hmac-sha1

hmac-sha1

JSON →
library0.2.2rscratesunverified

A simple wrapper around the RustCrypto hmac and sha1 crates for simple HMAC-SHA1 generation.

# Cargo.toml [dependencies] hmac-sha1 = "0.2.2"
INSTALL
IMPORT
SIG · HMAC-SHA1
H
hmac-sha1
cryptorustv0.2.2
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.

hmac_sha1
use hmac_sha1::hmac_sha1;

Computes HMAC-SHA1 of a message with a key.

use hmac_sha1::hmac_sha1; fn main() { let key = b"secret"; let data = b"message"; let result = hmac_sha1(key, data); println!("{:x?}", result); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
hmac-sha1 — cargo add hmac-sha1 · libregistry