ASP Random Password Generator

It seems nearly everything on the internet requires a password these days. Ordinary 'words' are ok, but can be cracked with dictionary crackers. Adding numbers and upper case letters is better - but for the best password, you can't beat a random string of numbers and upper/lower case letters. This little ASP gadget will generate a random password for you, up to 64 characters long - but don't expect to be able to remember it!

The number displayed beneath indicates the total of possible permutations for a password string of the length requested.

Select Password Length:   

Password: 

String length of 8 has 218,340,105,584,896 permutations



Want the script?

<%
Dim Randchar, strng, StrL

'Define the length of the password string
StrL=8

'Generate the password string
DO UNTIL Len(strng)=StrL
Randomize
Randchar = Int(Rnd*122)+1
IF (Randchar>64 AND Randchar<91) OR (Randchar>96 AND Randchar<123) OR (Randchar>47 AND Randchar<58) THEN
strng=strng & chr(Randchar)
END IF
LOOP

'Write the password string to the page - or remove and do whatever else you want to do with it!
Response.Write strng
%>


Home   Linear Conversion   Random Passwords   Contact

© Varley.com and CyberScapes 1998 - 2010