XChaCha20

class XChaCha20(key: ByteArray) : Cipher

Constructors

Link copied to clipboard
constructor(key: ByteArray)
constructor(key: String)

Functions

Link copied to clipboard
open override fun decode(data: ByteArray): ByteArray
Link copied to clipboard
fun decodeFromHex(data: String, format: HexFormat = HexFormat.Default): ByteArray
Link copied to clipboard
fun decodeFromHexToString(data: String, format: HexFormat = HexFormat.Default): String
Link copied to clipboard
Link copied to clipboard
fun encode(data: String): ByteArray
open override fun encode(data: ByteArray): ByteArray
Link copied to clipboard
fun encodeToHex(data: ByteArray, format: HexFormat = HexFormat.Default): String
fun encodeToHex(data: String, format: HexFormat = HexFormat.Default): String