mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2024-09-19 19:22:14 +02:00
older php variants do not have argon2i
This commit is contained in:
parent
7ca35bc7c9
commit
91a3dde446
@ -213,6 +213,11 @@ class PaCryptTest extends \PHPUnit\Framework\TestCase
|
||||
'SHA256-CRYPT.B64' => '{SHA256-CRYPT.B64}JDUkUTZZS1ZzZS5sSVJoLndodCR6TWNOUVFVVkhtTmM1ME1SQk9TR3BEeGpRY2M1TzJTQ1lkbWhPN1YxeHlD',
|
||||
];
|
||||
|
||||
// php 7.3 and below do not support these.
|
||||
if (phpversion() < '7.3') {
|
||||
unset($algo_to_example['ARGON2ID']);
|
||||
unset($algo_to_example['ARGON2ID.B64']);
|
||||
}
|
||||
|
||||
foreach ($algo_to_example as $algorithm => $example_hash) {
|
||||
$CONF['encrypt'] = $algorithm;
|
||||
|
Loading…
Reference in New Issue
Block a user