PHP 默认哈希函数安全
PHP default hash function safety
众所周知,md5
这些天是完全不安全的,我想知道默认的 password_hash()
是否已经被破解了?
你能告诉我它默认使用什么哈希算法吗?
迄今为止最好的哈希算法是什么(用于密码存储)。
谢谢
我建议使用 password_hash() 算法。它默认使用 Blowfish 密码算法(但您可以更改它)。该方法的 salt 选项现已在 php 7.0.0 中弃用,并使用自动生成的 salt。
有关更多信息,请查看:
http://php.net/manual/en/faq.passwords.php
http://php.net/manual/en/function.password-hash.php
众所周知,md5
这些天是完全不安全的,我想知道默认的 password_hash()
是否已经被破解了?
你能告诉我它默认使用什么哈希算法吗?
迄今为止最好的哈希算法是什么(用于密码存储)。
谢谢
我建议使用 password_hash() 算法。它默认使用 Blowfish 密码算法(但您可以更改它)。该方法的 salt 选项现已在 php 7.0.0 中弃用,并使用自动生成的 salt。
有关更多信息,请查看: http://php.net/manual/en/faq.passwords.php http://php.net/manual/en/function.password-hash.php