Files
marqdo/public/features/10-hash-secrets.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

489 B


title: Mid stdlib — hash and secrets description: lib/hash + lib/secrets without plugins (Mid M3) import hash:lib/hash.mq.md import sec:lib/secrets.mq.md

Digests and secure tokens

Integrity digests and cryptographic tokens stay in lib/ — do not use math.random for secrets.

main

d = > hash.sha256 text="marqdo" t = > sec.token_hex n=8 L = > len t

print text=d print text=L

  1. L == 16

print text=mid-m3-ok

print text=mid-m3-fail