DEV Community

Discussion on: Make Your Own Password Generator: Step-by-Step guide 🤖

Collapse
 
mahidharc profile image
mahidharc • Edited

A simple method that I use for on the Mac terminal is

jot -rcs '' 64 32 126

This gives you a random list of 64 characters from ASCII 32 (<SPC>) to ASCII 126 (~). I have this aliased in my .bashrc to randpass. On linux distributions I think you need to install jot from the package manager, since this is a BSD tool which isn't usually pre-installed.