Files
marqdo/public/features/10-hash-secrets.mq.md
T
cflmyandCursor b5c07385e9 feat(markup): finish v0.3 stock migration and green gold
Migrate remaining .mq.md (tests/ext/public/examples), stop elevating local assigns to params, inject form_target in Go libweb, and skip live LLM gold without a real key.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-13 23:43:44 +08:00

23 lines
495 B
Markdown

---
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
2. *
> print text=mid-m3-fail