Password

class Password(val data: ByteArray)

A class to hold the password. This class offers additional functionality to clear the data from memory, to avoid any potential memory attacks.

Constructors

Link copied to clipboard
constructor(data: ByteArray)

Properties

Link copied to clipboard

Functions

Link copied to clipboard

Returns the string representation of the password.

Link copied to clipboard
fun clear()

Clears the data, setting all bytes to 0. Once clear has been called, the password will no longer be in memory.

Link copied to clipboard
open override fun toString(): String