i'm looking how to create unique hash function or finding one that is not prebuilt already so there will not be bank of it , AKA : http://www.md5decrypter.co.uk/
any suggestion how to make one?
thanks in advance , Mor.
i'm looking how to create unique hash function or finding one that is not prebuilt already so there will not be bank of it , AKA : http://www.md5decrypter.co.uk/
any suggestion how to make one?
thanks in advance , Mor.
Simple, don't bother and just salt you hashes http://phpsec.org/articles/2005/password-hashing.html (and please don't use MD5, go for SHA1 or better for win).
If you don't know where to start then you've got a long journey ahead of you before you'll be in a position to make something better than sha1 or even md5.
There are lots of ways to reduce the impact of data banks / rainbow tables - assuming that your data needs to be adequately secure to justify the effort. e.g. there's not much point in using a perfect hash (even if such a thing was possible) to protect passwords stored in a database nobody can access.
To make it harder for brute force attacks on a hash, use a salt and compress the salted data before hashing it.
If I were you I would take a play out of drupal's handbook and check this out: What is Drupal's default password encryption method?
To protect yourself from those rainbow tables just make sure that you either salt your hashes or stack multiple encryptions md5(sha1($pass)). I still don't think you should do that but anything is better than a simple md5($pass)