Files
marqdo/lib/secrets.mq.md
T

480 B

markup, title, description
markup title description
occlusion lib/secrets 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.

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.

> host_secrets_token_urlsafe n=n