Filippo Valsorda :go: on Nostr: Should we extend the Go crypto/rand API? What functionality do/did you miss? One I am ...
Should we extend the Go crypto/rand API? What functionality do/did you miss?
One I am thinking about is random strings from a charset, for token and password generation.
This post brought to you by being very sad that the most popular Caddy SSO plugin used math/rand to generate tokens.
Published at
2024-02-13 10:37:39Event JSON
{
"id": "64277186f0983edc291e90346001c860a30dfe4216b4b4a24091dd5ca5d00d38",
"pubkey": "75c4441558d260c0ca589ce8fa89fd5052eccf0b09fca823796810a986ad1c8e",
"created_at": 1707820659,
"kind": 1,
"tags": [
[
"proxy",
"https://abyssdomain.expert/users/filippo/statuses/111923734723866097",
"activitypub"
]
],
"content": "Should we extend the Go crypto/rand API? What functionality do/did you miss?\n\nOne I am thinking about is random strings from a charset, for token and password generation.\n\nThis post brought to you by being very sad that the most popular Caddy SSO plugin used math/rand to generate tokens.",
"sig": "750886bcb2cf877812f7a521b877a4e82d4453427e328d07bcaeb15cc57e7ddc2eed213b2ce65e89f3e22c1e8b189c14b264aef527bb3e82e281c5393a70111e"
}