Dynaverse.net

Off Topic => Engineering => Topic started by: FPF-SCM_TraceyG_XC on November 29, 2005, 02:13:02 am

Title: Password encryption
Post by: FPF-SCM_TraceyG_XC on November 29, 2005, 02:13:02 am
A question for the programmers...

If you were going to write a program that stored passwords in a database, what encyption method (if anyl) would you use?
Title: Re: Password encryption
Post by: Bonk on November 29, 2005, 07:52:00 am
SHA256 is the new standard, as I understand it.

http://www.dynaverse.net/forum/index.php/topic,163360317.msg1122624384.html#msg1122624384

In particular:
http://www.php.net/manual/en/ref.mhash.php

But it depends on the database really. MySQL is only using a 45 byte password hash for its own accounts, so encrypting beyond that may be redundant... but I suppose if someone hacked into the db it might be useful if the passwords you stored there were more deeply encrypted than the db accounts themselves...

But for most purposes the good old MD5 hash will do, unless you expect elite haxors to get into your db..
Title: Re: Password encryption
Post by: FPF-SCM_TraceyG_XC on November 30, 2005, 12:31:27 pm
Thanks for the reply, Bonk.  :)
Title: Re: Password encryption
Post by: Dracho on November 30, 2005, 12:38:35 pm
Triple DES..

Blowfish is also okay. http://www.schneier.com/blowfish.html
Title: Re: Password encryption
Post by: Bonk on November 30, 2005, 04:08:04 pm
Is it legal to use DES outside the US yet?

That is pretty much the raison d'etre for the Canadian OpenBSD out of Winnipeg no?
Title: Re: Password encryption
Post by: FPF-SCM_TraceyG_XC on November 30, 2005, 07:57:47 pm
Well, whether it is legal or not, if I write the code myself then how can the use of an algorithm be policed? lol

The inspiration for my question came from a documentary I was watching on the Discovery channel the other day about the American Civil War. The Confederates were using a code that was almost ancient and was cracked by the North. Despite that, it was actually an interesting method for encoding messages, but far too easy to crack these days.
Title: Re: Password encryption
Post by: Dracho on December 01, 2005, 07:04:20 am
Is it legal to use DES outside the US yet?

That is pretty much the raison d'etre for the Canadian OpenBSD out of Winnipeg no?

DES (not Triple-DES) has already been cracked.