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

needsRehashForSensitive

static fun needsRehashForSensitive(hash: String!): Boolean (source)

Check if a hash needs to be regenerated using limits on operations and memory that are suitable for sensitive use-cases.

Equivalent to needsRehash(hash, sensitiveOpsLimit(), sensitiveMemLimit()).

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

Parameters

hash - String!: The hash.

Return
Boolean: true if the hash should be regenerated.