Doruk Ayar Doruk Ayar - 20 days ago 7
PHP Question

Why should I not use md5() for passwords?

I want to make a website with a login system.

Which hashing method should I use?

I used to hash my website's passwords with md5() but everyone said I should not use it.

Why not?

How can

md5
get cracked?

Answer

Please reference the documentation on Password Hashing for why you should not use md5() and please reference the password_hash() documentation on what you should use.