/ Published in: ASP
pass in the length of the password to generate and out comes a random alphanumeric password
Expand |
Embed | Plain Text
function genPassword(length) Randomize do until len(newPass) = length code = Int((74 * Rnd) + 48) if not((code >= 58 and code <= 64) or (code >= 91 and code <= 96)) then newPass = newPass & chr(code) end if loop genPassword = newPass end function
You need to login to post a comment.
