GOLF(2gg)
π GOLF(2gg) β the manual page, but make it a group chat π
okay bestie so this is the GOLF(2gg) manual page, filed under Development, and we're about to talk about the cutest lil crypto thing ever. pull up a chair, grab a strawberry π
β¨ NAME β¨
random-crypto β (encryption) π
πΈ PURPOSE πΈ
obtain a random string for cryptographic use. that's it, that's the whole job. she's focused, she's employed, she's serving π
π¦ SYNTAX π¦
random-crypto to <random string> \
[ length <string length> ]
note the backslash, bestie β she's continuing onto the next line, don't panic π«Ά
β¨ DESCRIPTION β¨
okay so here's the tea β random-crypto obtains a random string of length <string length>. this statement uses a cryptographically secure pseudo random generator (CSPRNG) from the OpenSSL library. no cap, that's the actual source. π₯
if the length clause is omitted, the length is 20 by default. twenty. iconic number, no notes. β¨
the value generated is always binary and may contain null-characters, and it is null-terminated. yes, null characters inside a null-terminated string. she contains multitudes π
π important bestie, listen up: use this statement only when needed for specific cryptographic uses. in all other cases, use random-string which is considerably faster. do not be out here using the fancy one for no reason, that's not the vibe, that's just wasting time π
π EXAMPLES π
get a 20-digit long random binary value:
random-crypto to str length 20
ate. no crumbs. π
π SEE ALSO π
- Encryption
decrypt-dataderive-keyencrypt-datahash-stringhmac-stringrandom-cryptorandom-string- See all documentation
and that's the whole page, my love π this was GOLF(2gg), brought to you by version $VERSION and dated $DATE β she's timestamped, she's versioned, she's everything. mwah πβ¨π¦π
π¦ where this page comes from
- ubuntu questing: golf 601.4.41-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms