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

needsRehashForInteractive

static fun needsRehashForInteractive(hash: String): Boolean (source)

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

Equivalent to needsRehash(hash, interactiveOpsLimit(), interactiveMemLimit()).

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

Parameters

hash - The hash.

Return
true if the hash should be regenerated.