Result

class Result(val hash: ByteArray, val salt: ByteArray)

Encapsulates the result of an Argon2 hashing operation, containing the hash and the salt used.

Parameters

hash

The generated hash as a ByteArray.

salt

The salt used for hashing as a ByteArray.

Constructors

Link copied to clipboard
constructor(hash: ByteArray, salt: ByteArray)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Compares this Result with another object for equality. Two Result objects are equal if their hashes and salts are identical.

Link copied to clipboard
open override fun hashCode(): Int

Generates a hash code for this Result based on its hash and salt.