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

Salt

class Salt (source)

A PasswordHash salt.

Functions

bytes

Provides the bytes of this salt.

fun bytes(): Bytes!

bytesArray

Provides the bytes of this salt.

fun bytesArray(): ByteArray!

equals

fun equals(other: Any?): Boolean

fromBytes

Create a Salt from an array of bytes.

static fun fromBytes(bytes: Bytes!): Salt!
static fun fromBytes(bytes: ByteArray!): Salt!

hashCode

fun hashCode(): Int

length

Obtain the length of the salt in bytes (32).

static fun length(): Int

random

Generate a new salt using a random generator.

static fun random(): Salt!