Files
marqdo/tests/lib/hash-smoke.mq.md
T
cflmyandCursor 08384c7540 feat(stdlib): Mid M3 hash digests and secure tokens
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>
2026-09-07 20:15:36 +08:00

19 lines
312 B
Markdown

---
title: lib/hash smoke
import hash:lib/hash.mq.md
---
# main
*s = > hash.sha256 text=""*
> print text=`s`
*a = > hash.sha256 text="abc"*
> print text=`a`
*m = > hash.md5 text="hello"*
> print text=`m`
*h = > hash.hmac_sha256 key="key" text="The quick brown fox jumps over the lazy dog"*
> print text=`h`