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.
Asked
Active
Viewed 755 times
0
-
Could you share some code with how you're doing it for numbers? – Matt Bridges Oct 21 '11 at 21:26
-
What operating system are you using? Is this the Windows command prompt? – Mark Byers Oct 21 '11 at 21:26
-
yeah sorry about that it is windows. here is the code for the generator – mendez Oct 21 '11 at 21:34
-
@echo off :password echo %random%- %random%- %random% pause goto password – mendez Oct 21 '11 at 21:34
1 Answers
0
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.

Brian
- 733
- 1
- 5
- 11
-
sorry I always forget to mention the OS it is windows vista. why I want to make a generator in cmp is so that I can use it on my friends computer but his com is slow so I don't want to install a program for it. – mendez Oct 21 '11 at 21:36