Gossamer Forum
Home : General : Perl Programming :

crypt() on different systems

Quote Reply
crypt() on different systems
I noticed that on most of the systems crypt() produces the same results.

Today I found that on a linux freeBSD server crypt()produces completely different results (including many $1 $2 etc. in the crypted string)

Can you halp me understand the situation?
Quote Reply
Re: [robyone] crypt() on different systems In reply to
If it starts with $1$ it means FreeBSD is using MD5 to do the encryption. RedHat/Mandrake etc doesn't do this which is why it is different.

MD5 is more secure.

Last edited by:

Paul: May 28, 2002, 5:27 AM
Quote Reply
Re: [Paul] crypt() on different systems In reply to
Also win perl works ;) so only freeBSD is involved .. ;)

What about Unix o.s.?

Thanks.

Last edited by:

robyone: May 28, 2002, 5:36 AM
Quote Reply
Re: [robyone] crypt() on different systems In reply to
FreeBSD's crypt() uses MD5 due to export restrictions. Most systems however use DES encryption so that's why you're seeing different results on your FreeBSD box. You can download an upgrade that changes the crypt on your FreeBSD box to use DES if you want.

- wil