Add openssl argon2 password hash support for PHP 8.5

This commit is contained in:
crazywhalecc
2025-07-30 23:02:28 +08:00
parent 9ed3c8b498
commit 5f5d934d58
5 changed files with 37 additions and 3 deletions

View File

@@ -7,3 +7,6 @@ assert(openssl_digest('123456', 'md5') === 'e10adc3949ba59abbe56e057f20f883e');
if (file_exists('/etc/ssl/openssl.cnf')) {
assert(file_get_contents('https://captive.apple.com/') !== false);
}
if (PHP_VERSION_ID >= 80500 && defined('OPENSSL_VERSION_NUMBER') && OPENSSL_VERSION_NUMBER >= 0x30200000) {
assert(function_exists('openssl_password_hash'));
}