Registry / crypto / hmac-sha256

hmac-sha256

JSON →
library1.1.14rscratesunverified

A small, self-contained SHA256, HMAC-SHA256, and HKDF-SHA256 implementation

# Cargo.toml [dependencies] hmac-sha256 = "1.1.14"
INSTALL
IMPORT
SIG · HMAC-SHA256
H
hmac-sha256
cryptorustv1.1.14
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
use hmac_sha256::HMAC;

Compute HMAC-SHA256 of a message

use hmac_sha256::HMAC; let key = b"secret"; let data = b"message"; let mac = HMAC::mac(data, key); println!("{:x?}", mac);
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.1.14latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
hmac-sha256 — cargo add hmac-sha256 · libregistry