CryptoBoxSecretKey

Secret key used in `crypto_box` cryptography.

Constructors

Link copied to clipboard
Create a random secret key.
Link copied to clipboard
open fun CryptoBoxSecretKey(data: Array<Byte>)
Create a `crypto_box` secret key with the given block of data.

Functions

Link copied to clipboard
open fun data(): Array<Byte>
Returns the raw data of the given secret-key.
Link copied to clipboard
open fun getPublicKey(): CryptoBoxPublicKey
Returns the public key associated with the given `key`.
Link copied to clipboard
open fun isValid(data: Array<Byte>): Boolean
Determines if the given secret key is valid or not.