password maker

By macs-rock on Dec 16, 2010

Screenshots

hello hawkee this is my alias of a password maker i also include a non alias for other users to use
commands for the alias

  1. /mkpass
    commands for other users
  2. !mkpass

ok

                _                                                    _ 
                | |                                                  | |
 _ __ ___   __ _| | _____   _ __   __ _ ___ _____      _____  _ __ __| |
| '_ ` _ \ / _` | |/ / _ \ | '_ \ / _` / __/ __\ \ /\ / / _ \| '__/ _` |
| | | | | | (_| |   <  __/ | |_) | (_| \__ \__ \\ V  V / (_) | | | (_| |
|_| |_| |_|\__,_|_|\_\___| | .__/ \__,_|___/___/ \_/\_/ \___/|_|  \__,_|
                           | |                                          
                           |_|                                

=====================================================================

on 1:TEXT:*!mkpass*:#:{
  notice $nick $rand(0,9) $+ $rand(a,z) $+ $rand(A,Z) $+ $rand(0,9) $+ $rand(a,z) $+ $rand(A,Z) $+ $rand(0,9) $+ $rand(a,z) $+ $rand(A,Z) $+ $rand(0,9) $+ $rand(a,z) $+ $rand(A,Z) $+ $rand(0,9) $+ $rand(a,z) $+ $rand(A,Z) $+ $rand(0,9) $+ $rand(a,z) $+ $rand(A,Z) $+ $rand(0,9) $+ $rand(a,z) $+ $rand(A,Z) $+ $rand(0,9) $+ $rand(a,z) $+ $rand(A,Z) $+ $rand(0,9) $+ $rand(a,z) $+ $rand(A,Z) $+ $rand(0,9) $+ $rand(a,z) $+ $rand(A,Z) $+ $rand(0,9) $+ $rand(a,z) $+ $rand(A,Z) $+ $rand(0,9) $+ $rand(a,z) $+ $rand(A,Z) $+ $rand(0,9) $+ $rand(a,z) $+ $rand(A,Z) $+ $rand(0,9)
}
====================alias version========================
alias mkpass {
  msg $chan $rand(0,9) $+ $rand(a,z) $+ $rand(A,Z) $+ $rand(0,9) $+ $rand(a,z) $+ $rand(A,Z) $+ $rand(0,9) $+ $rand(a,z) $+ $rand(A,Z) $+ $rand(0,9) $+ $rand(a,z) $+ $rand(A,Z) $+ $rand(0,9) $+ $rand(a,z) $+ $rand(A,Z) $+ $rand(0,9) $+ $rand(a,z) $+ $rand(A,Z) $+ $rand(0,9) $+ $rand(a,z) $+ $rand(A,Z) $+ $rand(0,9) $+ $rand(a,z) $+ $rand(A,Z) $+ $rand(0,9) $+ $rand(a,z) $+ $rand(A,Z) $+ $rand(0,9) $+ $rand(a,z) $+ $rand(A,Z) $+ $rand(0,9) $+ $rand(a,z) $+ $rand(A,Z) $+ $rand(0,9) $+ $rand(a,z) $+ $rand(A,Z) $+ $rand(0,9) $+ $rand(a,z) $+ $rand(A,Z) $+ $rand(0,9)
}

Comments

Sign in to comment.
ZirixZero   -  Dec 20, 2010

Another example? Sure.

AwesomePasswordIsAwesome

 Respond  
macs-rock   -  Dec 20, 2010

i am about to get a password from one of my geekbouncers and show it to you and then look at mine ok

right
geekbouncer pass: 30893a5eb454815e3bf4a3406b1b80c0
my password maker: 5mG8iN2zD8rE2lF1aK0vH3pW9iV1wQ5hB4yE0fU8

 Respond  
jaytea   -  Dec 20, 2010

well really, a 40 character password following the pattern described would still require, in the worst case, 6.156e+50 guesses - a number far greater than anything our technology is capable of handling in any realistic amount of time. still many orders of magnitude less than the latter, so for smaller passwords you're quite right to draw a distinction.

also, these wouldn't be referred to as 'layers of security' :P

 Respond  
IllogicTC   -  Dec 20, 2010

I'm not sure what exactly seems safe about a password with the recognizable pattern 0aA0aA to it, 40-digit length or not. You're not getting your full 4.9621e+71 layers of security, unlike if you were to run a true random (not including symbols, just alphanumeric characters).

 Respond  
sunslayer   -  Dec 19, 2010

that method works until you need to create passwords dynamically

 Respond  
Jethro   -  Dec 19, 2010

ZirixZero, by simple you mean to enter a bunch of gibberish? You sure as heck get a set of twiddlin' fingers, boy lol.

 Respond  
ZirixZero   -  Dec 19, 2010

Here's a simple password generator, tumbling your hands all over your keyboard. Example:

ufdydrekgrtrd9fritu655tf78iti65fr9ldsiusaWag2oiesirh

Remove the spaces and maybe the special chars.

 Respond  
Jethro   -  Dec 17, 2010

You should really adapt this version below and improve your code with some consideration that you do not want to get trigger flooded and have the incoming message stripped out of control codes:

on *:text:$($iif(!mkpass = $strip($1),$1)):#:if !%t { inc -u5 %t | mkpass }
alias mkpass { $iif($event = text,notice $nick,msg #) $&
    $regsubex($str(.,40),/./g,$gettok($r(a,z) $r(0,9) $r(A,Z),$r(1,3),32))
}

Your current code is 1174 bytes without the
"====================alias version========================"

The suggested one is only 202 bytes.

 Respond  
macs-rock   -  Dec 17, 2010

life is shot and we do need to be safe and a long password is a good choise but this is for company owners so if you whant to use it use it but its not that much easy to use fo sites that allow 4/8 caricters
so thats all ok and watch my typos

 Respond  
Jethro   -  Dec 17, 2010

Life is short indeed. Until then, be safe in the real world and online. ^^

 Respond  
cofvempire   -  Dec 17, 2010

@ jethro a password like this a@cD(f2H ( 8 characters ) r enough to get this password you need 117 years to hack with the right software, this password aBcDeFgHiJ ( 10 characters )
can b hacked in 4700 years lolz :p
i don't know about you but i think i'm not going to live that long xD
so 10 characters would b enough if u ask me.

 Respond  
Jethro   -  Dec 16, 2010

Also, marcs-rock, you don't need to repeat the routine for both the event and alias. You can do it with a single one:

on 1:TEXT:!mkpass:#:mkpass
alias mkpass {
  $iif($event = text,notice $nick,msg #) ;code to randomize password goes here
}

This will let you have both ways.

Again, I'm still baffled as to why you want to have the alias trigger and send a message to the channel where everybody will be able to see the password being generated.

 Respond  
Jethro   -  Dec 16, 2010

I think creating the length of 40 characters to generate a password is way too long. 12 to 14 with the combination of numbers, symbols (if allowed), upper and lowercase letters should get the job done fairly well for a password with good strength.

 Respond  
sunslayer   -  Dec 16, 2010

Teen the purpose of this snippet was never explained so sayin that its for generating passwords for irc use is simply an assumption, and $r(a,z) will only return values a-z and not numbers

 Respond  
_Teen_   -  Dec 16, 2010

there are no standards for password types

who said this? many websites dont accept special characters as passwords, but if you are generating Passwords for mIRC nicks of course its accepted

 Respond  
Jethro   -  Dec 16, 2010

Ok I see what you mean now. This will solve the matter:

$regsubex($str(.,40),/./g,$gettok($r(a,z) $r(0,9) $r(A,Z),$r(1,3),32))

AN140wWI6zP9714hjlG8Jos95tM0JysL4WIOLW4v
X3u2790i44c39vPfL1o48QaS5OFTbbEjeJ50WRj0
NR6GaAsWctk19L1Qe2PyuCWxGrP87Z9JIJ5IfM94
J84I42CV8VwMh8Q97389UFC9ZgLhj1l2k5OEmImY

 Respond  
sunslayer   -  Dec 16, 2010

about ur regex sunslayer, i need to remind, that for a ''password'' u need to use that would not be regex, and there are no standards for password types so it doesn't matter what you use unless stated otherwise.

 Respond  
_Teen_   -  Dec 16, 2010

using you regsubex way

4g0b20M02ED]99e\f86FWG6JKWB3IR516571iw69
Hu72AA5472X5i8123zTF9MW4NLn7054I87v[3M
C65]Y5C56Qs74djsDPs5\838D66[86w87\5ju09F
EY49w12341W8i6U5XM[597Ue1xBo9SU10iH5Ul\u
1F72xhp^n0160E5c^K426Z44WN88X0Zd5tU88B45

look especial characters like [ \ ^ , ppl cant use this as password

now using a,z

t3055698b95he0l1rdxaa80h9u3n9wjk750nm96k
wd33c664n4wed2853821440m5c0arjd7sv5kump8
nap50cidkp3oonmwe8qh3jva8h9n7q5w1bir0m6u
nbl77z85j9pb06ve0e214cch76q8e2prgqdyfi0y

 Respond  
Jethro   -  Dec 16, 2010

Teen, please demonstrate what you mean by what you've just said.

 Respond  
macs-rock   -  Dec 16, 2010

and nope its not md5 its made for companys like bnc services to generata a password for ever bnc K? k or my company its quite usefull

 Respond  
macs-rock   -  Dec 16, 2010

the password notices to you with the !mkpass one witch will not tell the channel

 Respond  
_Teen_   -  Dec 16, 2010

using A,z on regsubex it will return special characters like \ ^ ~ ] [ ' / _

so you cant use this to do passwords ._. cause there are fields of passwords, thats dont accept special characters

 Respond  
Jethro   -  Dec 16, 2010

What the heck are you talking about, Teen? Sunslayer's will return password either in uppercase or lowercase.

 Respond  
_Teen_   -  Dec 16, 2010

about ur regex sunslayer, i need to remind, that for a ''password'' u need to use

a,z not A,z cause on $regsubexit will return \ ^ ~ ] [ ' / _

$regsubex($str(.,40),/./g,$r(a,z))
 Respond  
Jethro   -  Dec 16, 2010

You may want to consider adding the numbers:

$regsubex($str(.,40),/./g,$gettok($r(A,z) $r(0,9),$r(1,2),32))
 Respond  
sunslayer   -  Dec 16, 2010

why would you want to msg the chan your password?

$regsubex($str(.,40),/./g,$r(A,z))
 Respond  
Jethro   -  Dec 16, 2010

TIP: someone will say that u need to use tokenize 32 $strip($1-)That's the corniest tip I've ever heard or seen.

 Respond  
_Teen_   -  Dec 16, 2010

i didnt understand why u put MD5 on tags
TIP: u dont need many rand to do it

EDIT: LMAO, i didnt see the entire code, about the !mkpass
thats why i said

 Respond  
Known   -  Dec 16, 2010

You may have wanted to it to make a completely random generator, with this it's just a LETTER - NUMBER- LETTER - NUMBER ..etc format, while a completely random generator wouldn't have a specific order in which numbers and letters come in.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.