Czarism.com

The Posterous of @Czarphanguye

« Back to blog

UnrealIRCd FAQ: How do I add encrypted passwords to oper blocks?

How do I add encrypted passwords to oper blocks?

The way to do this would be to use Unreal's MKPASSWD command. This command can be used while connected as /mkpasswd or on *nix as ./unreal mkpasswd. The syntax for this command is:
mkpasswd <auth-type> <password>
Unreal supports the following auth-types: crypt, md5, sha1, ripemd-160. This command would give you a result, which is the hashed version of that password. When you have the result from the command, enter the password in the oper block like this:
password <result> { <auth-type>; };
EXAMPLE:
If my password was "password" and I wanted it to be hashed with sha1, I would type:
/mkpassword sha1 password

Which would give me:
*** Authentication phrase (method=sha1, para=password) is: $6L/ybC6i$S8/+1SAx96FcbatLyHzoYJHxxCw=

Then I would put it in my oper block as:
password "$6L/ybC6i$S8/+1SAx96FcbatLyHzoYJHxxCw=" { sha1; };

I would then be able to oper:
/oper login password

NOTE: It will be different every time you run it! Don't worry, this is because the hashes are salted so they are different each time. It is still the same password.

Dec 09, 2009
plastic surgery said...
Its really nice site. It increases my knowledge a lot. I must suggest students to visit this site. Nice work. keep it up
Feb 03, 2010
dustinnw said...
Very nice post you have here! Thanks anyway this might come very handy on my research papers online.
 
Got an account with one of these? Login here, or just enter your comment below.
Posterous-login    twitter