Is this password hash stale?
public static needsRehash ( string $stored, EncryptionKey $secretKey, string $level = KeyFactory::INTERACTIVE ) : boolean | ||
$stored | string | Encrypted password hash |
$secretKey | EncryptionKey | The master key for all passwords |
$level | string | The security level for this password |
return | boolean | Do we need to regenerate the hash or ciphertext? |