2017 © Pedro Peláez
 

yii2-extension yii2-phpass

integrate http://www.openwall.com/phpass/ in yii2

image

byflav/yii2-phpass

integrate http://www.openwall.com/phpass/ in yii2

  • Friday, September 16, 2016
  • by byflav
  • Repository
  • 0 Watchers
  • 1 Stars
  • 17 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 13 % Grown

The README.md

openwall PasswordHash by yii2

Portable PHP password hashing framework in yii2 http://www.openwall.com/phpass/, (*1)

Installation

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)

Usage

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)

The Versions

16/09 2016

dev-master

9999999-dev

integrate http://www.openwall.com/phpass/ in yii2

  Sources   Download

Apache-2.0

The Requires

 

by Flavio E. salas M.

yii2 phpass openwall crypt passwordhash