perfgate-sha256
Minimal SHA-256 implementation for perfgate fingerprinting.
Part of the perfgate workspace.
Overview
A #![no_std]-compatible SHA-256 hash function returning a hexadecimal string.
Designed for fingerprinting and identification, not cryptographic security.
Zero external dependencies.
Features
std(default) — enablesstdsupport- Without
std— usesalloc::string::Stringonly
Key API
sha256_hex(data: &[u8])— compute SHA-256 and return a 64-char lowercase hex string
Example
use sha256_hex;
let hash = sha256_hex;
assert_eq!;
assert_eq!;
let empty = sha256_hex;
assert_eq!;
License
Licensed under either Apache-2.0 or MIT.