Rachel
Toggle table of contents
3.7.2
common
Target filter
common
Switch theme
Search in API
Skip to content
Rachel
love.yinlin.foundation.cryptography
/
love.yinlin.foundation.cryptography
/
XChaCha20
XCha
Cha20
class
XChaCha20
(
key
:
ByteArray
)
:
Cipher
Members
Constructors
XCha
Cha20
Link copied to clipboard
constructor
(
key
:
ByteArray
)
constructor
(
key
:
String
)
Functions
decode
Link copied to clipboard
open
override
fun
decode
(
data
:
ByteArray
)
:
ByteArray
decode
From
Hex
Link copied to clipboard
fun
decodeFromHex
(
data
:
String
,
format
:
HexFormat
=
HexFormat.Default
)
:
ByteArray
decode
From
Hex
To
String
Link copied to clipboard
fun
decodeFromHexToString
(
data
:
String
,
format
:
HexFormat
=
HexFormat.Default
)
:
String
decode
To
String
Link copied to clipboard
fun
decodeToString
(
data
:
ByteArray
)
:
String
encode
Link copied to clipboard
fun
encode
(
data
:
String
)
:
ByteArray
open
override
fun
encode
(
data
:
ByteArray
)
:
ByteArray
encode
To
Hex
Link copied to clipboard
fun
encodeToHex
(
data
:
ByteArray
,
format
:
HexFormat
=
HexFormat.Default
)
:
String
fun
encodeToHex
(
data
:
String
,
format
:
HexFormat
=
HexFormat.Default
)
:
String