tuweni / org.apache.tuweni.crypto.sodium / PasswordHash / checkHashForSensitive

checkHashForSensitive

static fun checkHashForSensitive(hash: String!, password: String!): VerificationResult! (source)

Verify a password against a hash and check the hash is suitable for sensitive use-cases.

Equivalent to verify(hash, password, sensitiveOpsLimit(), sensitiveMemLimit()).

Note: only supported when the sodium native library version >= 10.0.14 is available.

Parameters

hash - String!: The hash.

password - String!: The password to verify.

Return
VerificationResult!: The result of verification.