Packages / rupm

hash-tools 0.1.0

SHA-256 and HMAC as hex strings, for bytes, text and files

Install

cargo add hash-tools --registry rupm

In Ruststudio: Packages, search for hash-tools, Install.

Owner: Rust Studio. Licence: MIT OR Apache-2.0. Total downloads: 0. Published 2026-11-22.

Versions

README

# hash-tools

SHA-256 and HMAC as hex strings, for bytes, text and files

Add it with `rupm add hash-tools` (or `cargo add hash-tools --registry rupm`).

```rust
let digest = hash_tools::sha256_hex(b"hello");
let file = hash_tools::sha256_file("installer.exe")?;
let mac = hash_tools::hmac_sha256_hex(b"secret", b"message");
assert!(hash_tools::hmac_sha256_verify(b"secret", b"message", &mac));
```