Random Password Generator
Platform: mIRC
Published Jun 16, 2011
Updated Jun 17, 2011
Generates a random password with options like the amount of characters and inclusion of lowercase, uppercase, and numeric characters.
syntax: /newpass <number of characters> <y/n for lowercase> <y/n for uppercase> <y/n for numbers>
stop by #Savage_CL on SwiftIRC and let me know what you think :)
;Random password generator
;By Savage_CL
;support found on swiftIRC in #Savage_CL
;connect command: /server -m irc.swiftirc.net -j #savage_CL
alias newpass {
if ($1 !isnum) || ($4 == $null) { echo -a you must specify a number of characters and character params. | echo -a Syntax: /newpass <characters> [y/n for lowercase letters] [y/n for Uppercase letters] [y/n for numbers] | return }
if ($left($$2,1) != y) && ($left($$3,1) != y) && ($left($$4,1) != y) { echo -a You can't have a $$1 character password without any available characters! | return }
var %temp 1
while (%temp <= $$1) {
var %thing $rand(1,3)
if (%thing == 1) && ($left($$2,1) != n) { var %pass %pass $+ $rand(a,z) | inc %temp }
elseif (%thing == 2) && ($left($$3,1) != n) { var %pass %pass $+ $rand(A,Z) | inc %temp }
elseif (%thing == 3) && ($left($$4,1) != n) { var %pass %pass $+ $rand(0,9) | inc %temp }
}
echo -a Your $$1 character password is: %pass
}