0
0
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:
David Goodwin 2021-09-29 21:23:18 +01:00
parent 7ca35bc7c9
commit 91a3dde446

View File

@ -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;