Add lib/hash and lib/secrets (EN/ZH) with known-vector golds, getrandom-backed tokens, and public demos. Co-authored-by: Cursor <cursoragent@cursor.com>
26 lines
375 B
Markdown
26 lines
375 B
Markdown
---
|
|
title: lib/hash
|
|
description: Digests and HMAC (Mid M3). Integrity / cache keys — not password hashing.
|
|
---
|
|
|
|
## sha256
|
|
+ `text`
|
|
|
|
**> host_hash_sha256 text=`text`**
|
|
|
|
## sha1
|
|
+ `text`
|
|
|
|
**> host_hash_sha1 text=`text`**
|
|
|
|
## md5
|
|
+ `text`
|
|
|
|
**> host_hash_md5 text=`text`**
|
|
|
|
## hmac_sha256
|
|
+ `key`
|
|
+ `text`
|
|
|
|
**> host_hash_hmac_sha256 key=`key` text=`text`**
|