Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


UNIX MD5 CRYPT


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
6 replies to this topic

#1 nes8bit   Members   -  Reputation: 275

Posted 04 November 2001 - 08:24 AM

What is the difference between MD5 and UNIX MD5 CRYPT? What is the salt parameter for? --------------------------------------------- My useless posts have been viewed gotta view images to view the couNter times TIM: God@totalim.com

Sponsor:

#2 Strife   Members   -  Reputation: 374

Posted 04 November 2001 - 09:46 AM

I have no idea what the UNIX MD5 CRYPT is... I''d think they''d be the same thing though seeing as MD5 is an algorithm and all...

Free Speech, Free Sklyarov
Fight the unconstitutional DMCA.

Commander M

#3 SHilbert   Members   -  Reputation: 647

Posted 05 November 2001 - 05:49 AM

http://www.usenix.org/events/usenix99/provos/provos_html/node10.html

The crypt() function on *nix systems takes two parameters, the word to encrypt and a two-byte salt, and returns an encrypted string. The function traditionally uses the DES algorithm, which is perturbed one of 4096 ways based on the salt. The MD5 crypt was designed for FreeBSD because of export restrictions on encryption software and to allow for longer passwords. The actual salt you provide it has no effect on the actual hash the MD5 part generates (according to the above page); apparently it''s just concatenated into the result. In any case, MD5 is a standard algorithm; the "UNIX MD5 crypt" refers the the UNIX crypt() function (or crypt executable) that''s built to use MD5 rather than DES.

Gaah!

#4 nes8bit   Members   -  Reputation: 275

Posted 05 November 2001 - 11:45 AM

So tell me scott, how do I use it?

...you know why I''m asking also...

---------------------------------------------
My useless posts have been viewed gotta view images to view the couNter times
TIM: God@totalim.com

#5 SHilbert   Members   -  Reputation: 647

Posted 06 November 2001 - 08:00 AM

it's actually no more secure than a normal MD5 encryption scheme... if I remember its output is like this:

$(version)$(salt)$(MD5 hash)

so, for example:

$1$sa$a0b2c3d4e5f6a0b2c3d4e5f6

EDIT: Notice that the last part might be actual byte values rather than a hex representation of the hash. I'd have to play around with an actual implementation to check this.

Not really much more secure at all, I don't think. Remember, the UNIX MD5 CRYPT is an application of MD5 for encrypting/hashing passwords, it's not a new algorithm that's any more secure than MD5.

Gaah!

Edited by - SHilbert on November 6, 2001 3:01:13 PM

#6 Arild Fines   Members   -  Reputation: 968

Posted 06 November 2001 - 09:51 AM

Is someone making a yahoo messenger client?

"I contend that we are both atheists. I just believe in one fewer god than you do. When you understand why you dismiss all the other possible gods, you will understand why I dismiss yours." - - Stephen Roberts

#7 nes8bit   Members   -  Reputation: 275

Posted 06 November 2001 - 11:11 AM

good question

---------------------------------------------
My useless posts have been viewed gotta view images to view the couNter times
TIM: God@totalim.com




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS