On 9/3/2025 1:46 PM, Eric Cook wrote:
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?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 functionand 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 itconverts 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 themwith whatever methodology needed.
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.