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>
This commit is contained in:
cflmyandCursor committed 2026-09-14 11:47:35 +08:00
1 parent 53bc3538da
commit fecaacd5be
49 files changed
+617 -21

No files matched your search

+6 -2
View File
@@ -3,16 +3,20 @@ title: lib/secrets
description: Cryptographic tokens (Mid M3). Do not use math.random for secrets.
---
Cryptographic tokens. Do not use math.random for secrets.
## token_hex
+ `n`=None
Byte length `n` (default 16). Returns lowercase hex of length `2*n`.
Byte length n (default 16). Returns lowercase hex of length 2*n.
Caller: [secrets.token_hex] n=16
*> host_secrets_token_hex n=`n`*
## token_urlsafe
+ `n`=None
Byte length `n` (default 16). URL-safe Base64 without padding.
Byte length n (default 16). URL-safe Base64 without padding.
*> host_secrets_token_urlsafe n=`n`*