dev-master
9999999-devintegrate http://www.openwall.com/phpass/ in yii2
Apache-2.0
The Requires
by Flavio E. salas M.
yii2 phpass openwall crypt passwordhash
integrate http://www.openwall.com/phpass/ in yii2
Portable PHP password hashing framework in yii2 http://www.openwall.com/phpass/, (*1)
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require --prefer-dist byflav/yii2-phpass "*"
or add, (*4)
"byflav/yii2-phpass": "*"
to the require section of your composer.json
file., (*5)
Once the extension is installed, simply use it in your code by :, (*6)
1 setup component in config file app:, (*7)
'components' => [ 'security' => [ 'class' => 'byflav\phpass\Security', 'iterationCountLog2' => 8, // integer > 3 and < 31 ; default 8; 'portableHashes' => false, // boolean; default false; ], ]
2 example use:, (*8)
#create hash: $hash = Yii::$app->getSecurity()->generatePasswordHash('lorem ipsum'); #validate hash: (return boolean) return Yii::$app->getSecurity()->validatePassword('lorem ipsum', $hash);
```, (*9)
integrate http://www.openwall.com/phpass/ in yii2
Apache-2.0
yii2 phpass openwall crypt passwordhash