casey / just

🤖 Just a command runner
https://just.systems
Creative Commons Zero v1.0 Universal
17.59k stars 399 forks source link

Support for secure random sequence generation, with a customizable alphabet #1991

Open t3hmrman opened 1 month ago

t3hmrman commented 1 month ago

Thanks (as always) for the awesome tool!

One thing I'd like to have is secure random sequence generation in just. Right now we have uuid() which is OK for generating random phrases and stuff, but it would be nice to have a utility that generates a secure random (i.e. from the appropriate OS-provided entropy source) value, of a customizable length, with a customizable alphabet.

This is quite a big feature, but it would help remove a bunch of hacks around this that I think many people are doing. Maybe I'm the only one piping openssl output through various tools like tr trying to get reasonable random values, but it would be nice if this was handled by just natively.