Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH] (2nd try) new function passphrase generator




On 9/3/2025 1:46 PM, Eric Cook wrote:
On 9/3/25 9:19 AM, Clinton Bunch wrote:
On 9/3/2025 02:20, dana wrote:
On Tue 2 Sep 2025, at 21:53, Clinton Bunch wrote:
Taking Mikael's feedback into consideration, I've reworked the function
and renamed it zgenpassphrase.
additional feedback, ignore anything you think is too nit-picky

(your mail client seems to insert hard line breaks at 72 columns, and it
converts multiple spaces into alternating spaces and nbsps (0xa0), so
the diff is broken and i was too lazy to fix it so i could actually
test the functionality. you should probably change that, or re-send as
an attachment)
I'll try to send the next iteration as both.

What would zsh users gain by shipping a password generator with the shell?

Not that the script has no value, just that its not something i can't recall ever needing when i've had other dedicated programs or websites that can create them
with whatever methodology needed.

The use case I had in mind was install scripts for programs that need to interface with a database or other password protected resources.  But also, why download another program when the shell is perfectly capable of generating a secure password when you need to change your password?

It is also a good demonstration of the zsh/random module.  But maybe it shouldn't be included in the default autoload function but in a revived contrib/examples repository in the distribution tarball, on the website, or a new github repository alongside the mirror.  The example scripts we have haven't been updated in decades.





Messages sorted by: Reverse Date, Date, Thread, Author