/trunk/plugins/viathinksoft/auth/A3_bcrypt/OIDplusAuthPluginBCrypt.class.php |
---|
66,7 → 66,7 |
return new OIDplusRAAuthInfo($calc_authkey); |
} |
public function available(&$reason): bool { |
public function availableForHash(&$reason): bool { |
if (version_compare(PHP_VERSION, '7.4.0') >= 0) { |
$ok = in_array('2', password_algos()) || |
in_array('2a', password_algos()) || |
84,4 → 84,8 |
return false; |
} |
public function availableForVerify(&$reason): bool { |
return $this->availableForHash($reason); |
} |
} |
/trunk/plugins/viathinksoft/auth/A4_argon2/OIDplusAuthPluginArgon2.class.php |
---|
85,7 → 85,7 |
} |
} |
public function available(&$reason): bool { |
public function availableForHash(&$reason): bool { |
if (!$this->supportsArgon2i() && !$this->supportsArgon2id()) { |
$reason = _L('No fitting hash algorithm found'); |
return false; |
94,4 → 94,8 |
} |
} |
public function availableForVerify(&$reason): bool { |
return $this->availableForHash($reason); |
} |
} |
/trunk/plugins/viathinksoft/auth/A5_vts_mcf/OIDplusAuthPluginVtsMcf.class.php |
---|
58,8 → 58,12 |
return new OIDplusRAAuthInfo($calc_authkey); |
} |
public function available(&$reason): bool { |
return function_exists('sha3_512_hmac') || function_exists('sha3_512'); |
public function availableForHash(&$reason): bool { |
return function_exists('vts_password_hash') && (function_exists('sha3_512_hmac') || function_exists('sha3_512')); |
} |
public function availableForVerify(&$reason): bool { |
return function_exists('vts_password_verify'); |
} |
} |
/trunk/plugins/viathinksoft/auth/A6_crypt/OIDplusAuthPluginCrypt.class.php |
---|
36,8 → 36,12 |
return new OIDplusRAAuthInfo($calc_authkey); |
} |
public function available(&$reason): bool { |
public function availableForHash(&$reason): bool { |
return function_exists('vts_password_hash'); |
} |
public function availableForVerify(&$reason): bool { |
return function_exists('vts_password_verify'); |
} |
} |