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

VerificationResult

class VerificationResult (source)

A hash verification result.

Note: methods returning this result are only supported when the sodium native library version >= 10.0.14 is available.

Enum Values

FAILED

PASSED

NEEDS_REHASH

Functions

needsRehash

Returns true if the hash should be regenerated.

fun needsRehash(): Boolean

passed

Returns true if the verification passed.

fun passed(): Boolean