3 ms·
>Then consider that there are precomputed rainbow tables that have had far more computer power thrown at them, and suddenly MD5 starts looking more like a "ligh
by gruez 6y ago
>Then consider that there are precomputed rainbow tables that have had far more computer power thrown at them, and suddenly MD5 starts looking more like a "light obfuscation" than a true cryptographic hash...
...because that's not what a cryptographic hash means. SHA256, a "secure" hash is vulnerable to the same things you mentioned. The term you're looking for is a password hash, or a key stretching function, which is intentionally slow to be resistant to brute-forcing. As for rainbow tables, that's solved at the application level with salts.
- hu3 6y agoYep. I think current PHP best practice is to use standard library password_hash() and password_verify() which takes care of salting: https://www.php.net/manual/en/function.password-hash.php https://www.php.net/manual/en/function.password-hash.php