在 Laravel 源码中,对于用户密码的加密,使用的是 password_hash() 这个函数。这个函数是属于 PHP 密码散列算法扩展中所包含的函数,它是集成在 PHP 源码中的扩展,并且还是 PHP 官方所推荐的一种密码加密方式。那么它有什么好处呢?
Its length depends on the algorithm used. May be the best way to generate an $iv is by: <?php $iv = openssl_random_pseudo_bytes(openssl_cipher_iv_length('your algorithm'));// for example you algorithm = 'AES-256-CTR' ?> up down 3 lucianonapoli at yahoo dot it ¶ 7 ...
Emits an E_WARNING level error if an unknown cipher algorithm is passed via the cipher_algo parameter. Emits an E_WARNING level error if an empty value is passed in via the iv parameter. Changelog ¶ VersionDescription 8.1.0 tag is now nullable. 7.1.0 The tag and aad parameters were...