PHP 教程
PHP 密碼散列算法
password_hash() 函數(shù)用于檢測散列值是否匹配指定的選項。
PHP 版本要求: PHP 5 >= 5.5.0, PHP 7
bool password_needs_rehash ( string $hash , int $algo [, array $options ] )
參數(shù)說明:
此函數(shù)檢測指定的散列值是否實現(xiàn)了提供的算法和選項。 如果沒有,需要重新生成散列值。