Commit 8646ef00 by Thomas Papiernik

Downgrade zend-math / zend-crypt from 3.0 to 2.4.0

parent 8707431d
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
"description": "Class to generate scrypt password hashes that are compatible with the wg/scrypt Java implementation", "description": "Class to generate scrypt password hashes that are compatible with the wg/scrypt Java implementation",
"require": { "require": {
"php": "^5.6 || ^7.0", "php": "^5.6 || ^7.0",
"zendframework/zend-crypt": "^3.0", "zendframework/zend-crypt": "~2.4.0",
"zendframework/zend-math": "^3.0" "zendframework/zend-math": "~2.4.0"
}, },
"suggest": { "suggest": {
"ext-scrypt": "This module will be excruciatingly slow without it." "ext-scrypt": "This module will be excruciatingly slow without it."
......
<?php
require __DIR__ . '/../vendor/autoload.php';
use ModDev\Password\Scrypt;
$scrypt = new Scrypt();
$securePass = $scrypt->create('123456789Aeroplanes');
echo $securePass;
\ No newline at end of file
<?php
require __DIR__ . '/../vendor/autoload.php';
use ModDev\Password\Scrypt;
$scrypt = new Scrypt();
echo $scrypt->verify('123456789Aeroplaness', '$s0$b0401$w290Ht6icdUjTU+ee6U7yQ==$q81kkJGf+xiuJOz/sEAgsOrKOiwOBiT7e/v9rJtdSlY=') ? 'OK' : 'Nok';
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment