2017 © Pedro Peláez
 

yii2-extension yii2-scrypt

Scrypt key derivation function for Yii2

image

alexandernst/yii2-scrypt

Scrypt key derivation function for Yii2

  • Saturday, April 4, 2015
  • by alexandernst
  • Repository
  • 1 Watchers
  • 1 Stars
  • 49 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 4 % Grown

The README.md

yii2-scrypt

Scrypt key derivation function for Yii2, (*1)

To use it just require this extension in your composer.json file:, (*2)

"alexandernst/yii2-scrypt": "0.0.4",

And then add it to your components configuration in Yii2:, (*3)

'components' => [
    'Scrypt' => [
        'class' => 'alexandernst\Scrypt\Scrypt'
    ],
]

To derivate a key, use the following method:, (*4)

/**
* Scrypt algorithm
*
* @param  string $password
* @param  string $salt
* @param  int $n CPU/Memory cost parameter, must be larger than 1, a power of 2 and less than 2^(128 * r / 8)
* @param  int $r Block size
* @param  int $p Parallelization parameter, a positive integer less than or equal to ((2^32-1) * hLen) / MFLen where hLen is 32 and MFlen is 128 * r
* @param  int $length Length of the output key
* @throws Exception
* @return string
*/
echo bin2hex(\Yii::$app->Scrypt->calc("plain password", "salt", 8, 8, 16, 32));

This class passes all the tests specified in the documentation., (*5)

The Versions

04/04 2015

dev-master

9999999-dev

Scrypt key derivation function for Yii2

  Sources   Download

GNU General Public License v3

The Requires

 

by Alexander Nestorov

extension yii2 scrypt encryption hmac pbkdf2 salsa208 key derivation

04/04 2015

0.0.4

0.0.4.0

Scrypt key derivation function for Yii2

  Sources   Download

GNU General Public License v3

The Requires

 

by Alexander Nestorov

extension yii2 scrypt encryption hmac pbkdf2 salsa208 key derivation

04/04 2015

0.0.3

0.0.3.0

Scrypt key derivation function for Yii2

  Sources   Download

GNU General Public License v3

The Requires

 

by Alexander Nestorov

extension yii2 scrypt encryption hmac pbkdf2 salsa208 key derivation

04/04 2015

0.0.2

0.0.2.0

Scrypt key derivation function for Yii2

  Sources   Download

GNU General Public License v3

The Requires

 

by Alexander Nestorov

extension yii2 scrypt encryption hmac pbkdf2 salsa208 key derivation

04/04 2015

0.0.1

0.0.1.0

Scrypt key derivation function for Yii2

  Sources   Download

GNU General Public License v3

The Requires

 

by Alexander Nestorov

extension yii2 scrypt encryption hmac pbkdf2 salsa208 key derivation