how do you make a password generator in command prompt that uses letters?

800 views Asked by At

I know how to create a password generator in command prompt but it only uses numbers. Is there a way to make it generate letters as well? for example, ASDE-DASD-DWAS-AWDS.

1

There are 1 answers

1
Brian On

Assuming Linux, try this:

cat /dev/urandom | tr -dc '0-9' | head -c8

Change the last number (8 here) to be how many digits you want.

I have no idea what you're using this for, but this does work. There may be better ways to do what you really want to do.