CryptoBox

class CryptoBox

`crypto_box` encryption algorithms.

Functions

Link copied to clipboard
open fun decryptEasy(mySecret: CryptoBoxSecretKey, otherPubkey: CryptoBoxPublicKey, encrypted: Array<Byte>): Array<Byte>
Decrypts box produced by `TWCryptoBoxEncryptEasy`.
Link copied to clipboard
open fun encryptEasy(mySecret: CryptoBoxSecretKey, otherPubkey: CryptoBoxPublicKey, message: Array<Byte>): Array<Byte>
Encrypts message using `my_secret` and `other_pubkey`.