PHP supports md5 and sha up to 512. MD6 is not supported natively as far as I'm aware and wouldn't be applicable in a lot of cases as it is intended for encryption with very large inputs while utilizing multiple cores efficiently.
All of the encryptions you mentioned with the possible exception of md5 are impractical to crack using brute force, however other more clever means do exist. In short sha512 is more secure than sha1 which is more secure than md5, however I doubt you're going to be experiencing security issues by using sha1 instead of a more robust algorithm.
Just remember to use a salt when encrypting passwords.
Quote:
Originally Posted by lizciz
First of, it's not encryption but hashing. Th difference beeing that an encryption have a way to decrypt to recieve the original text, while the whole point of a hash is that it can't (within reasonable time).
|
I suppose you could break down the symantics further and claim its not hashing, but cryptographic hashing  . A hash function maps a value to an index of a hash table whereas a cryptographic hash function maps a value to a fixed length string.
I agree with your comments regarding md5. I think the inteded use of md5 is for file integrity validation. For password hashing its best to stick to algorithms that are less likely to generate collisions.
Last edited by NullPointer; 02-21-2009 at 05:55 AM..
Reason: So many typos, this is what happens when you post at 2:00AM
|