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>
15 lines
196 B
Markdown
15 lines
196 B
Markdown
---
|
|
title: lib/secrets smoke
|
|
import sec:lib/secrets.mq.md
|
|
---
|
|
|
|
# main
|
|
|
|
*t = > sec.token_hex n=8*
|
|
*L = > len `t`*
|
|
> print text=`L`
|
|
|
|
*u = > sec.token_urlsafe n=9*
|
|
*ul = > len `u`*
|
|
> print text=`ul`
|