Files
marqdo/lib/机密.mq.md
T
cflmyandCursor fecaacd5be docs(lib): narrate remaining stdlib modules (M2)
Add module intros and per-function purpose lines across EN/ZH libs, with
callable examples on the smaller modules; keep + params and host bodies intact.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-14 11:47:35 +08:00

542 B

title, description
title description
lib/机密 安全随机令牌(中层 M3)。勿用 math.random 生成令牌。

安全随机令牌。勿用 math.random 生成令牌。

十六进制令牌

+ `字节数`=None

字节长度(默认 16),返回长度为 2*字节数 的小写 hex。

调用例:[机密.十六进制令牌] 字节数=16

> host_secrets_token_hex n=字节数

网址安全令牌

+ `字节数`=None

字节长度(默认 16),URL-safe Base64(无填充)。

> host_secrets_token_urlsafe n=字节数