Password Generator
mIRC Code
+ 0 likes
Please Register to submit score.
| Average Score | 0.0 (of 0 scores) |
| Date Added | Sep 11, 2009 |
| Last Updated | Sep 12, 2009 |
| Tags | generate password upper |
Introduction
It generates 9 character, alpha-numerical, upper and lower case passwords.
Just something I thought others would appreciate.
Here is a list of passwords generated with it.
93q996U45
K64j14sek
3G2QX15Q7
9194221S4
TYM8lfA67
j13c4l4MB
y22iMg7t7
I23EeaS33
577729391
Rh42LomYr
467359628
f4MLZJ858
8291Gr6RP
42S6H44r7
966i49T4y
42hZ4lR81
2ij633W39
561hpSJ14
Much better than my first one which used about 50 if statements and was all lower case. Or my second one which only allowed for a set amount of characters.
Enjoy.
Redid it so you can /passgen [x] where x = the amount of characters you want in the password. If x is not supplied, the default of 9 is used.
mIRC Snippet:
Password Generator
Posted on Sep 11, 2009 10:31 pm
Posted on Sep 11, 2009 10:31 pm
XD it's good and Handy =) 8/10
mIRC Snippet:
Password Generator
Posted on Sep 12, 2009 1:56 am
Posted on Sep 12, 2009 1:56 am
Pretty good, I use
it can generate up to a length of 79 characters //echo -b $genpass(9)
| Code: |
| alias genpass { return $eval($ $+ +( $str($!iif($r(0,1),$iif($r(0,1),$r(A,Z),$r(a,z)),$r(0,9)) $+ $chr(44),$1) ),2) } |
it can generate up to a length of 79 characters //echo -b $genpass(9)
mIRC Snippet:
Password Generator
Posted on Sep 12, 2009 2:05 am
Posted on Sep 12, 2009 2:05 am
@Thelmrac: mine goes to 469 so I guess I win something.
mIRC Snippet:
Password Generator
Posted on Sep 12, 2009 2:15 am
Posted on Sep 12, 2009 2:15 am
=) If I am in need of a 469 character password, I will be using your snippet. I see you changed your snippet, I was going to suggest doing exactly what you did with %pass %pass and removing the spaces, nice job!
edit: also you can do
var %amount = $iif($1 isnum,$1,9)
edit edit:
And if you want you can even use
while (%amount) { dec %amount }
heh sorry, just bored and like to make things more efficient =)
edit: also you can do
var %amount = $iif($1 isnum,$1,9)
edit edit:
And if you want you can even use
while (%amount) { dec %amount }
heh sorry, just bored and like to make things more efficient =)
mIRC Snippet:
Password Generator
Posted on Sep 23, 2009 7:01 pm
Posted on Sep 23, 2009 7:01 pm
Sloth
NO, I win! Mine goes to 4144 characters!
However, I like Thelmac's best but to be perfectly 'fair' his should be like this:
This way is a close enough approximation:
His original version produces about 50% numbers in the string.
Also, Thelmac if you need a password 469 characters you can:
$str($genpass(67),7)
To produce up to 4108 character passwords.
NO, I win! Mine goes to 4144 characters!
| Code: |
| alias passgen { var %r while $len(%r) < $1 { %r = %r $+ $chr($remove($r(48,122),58,59,60,61,62,63,64,91,92,93,94,95,96)) } return %r } |
However, I like Thelmac's best but to be perfectly 'fair' his should be like this:
| Code: |
| alias genpass { return $eval($ $+ +( $str($!iif($floor($calc($r(0,61)/10)),$iif($r(0,1),$r(A,Z),$r(a,z)),$r(0,9)) $+ $chr(44),$1) ),2) } |
This way is a close enough approximation:
| Code: |
| alias genpass { return $eval($ $+ +( $str($!iif($r(0,5),$iif($r(0,1),$r(A,Z),$r(a,z)),$r(0,9)) $+ $chr(44),$1) ),2) } |
His original version produces about 50% numbers in the string.
Also, Thelmac if you need a password 469 characters you can:
$str($genpass(67),7)
| Code: |
| alias PWgen $left($str($genpass(79),52), $1) |
To produce up to 4108 character passwords.



