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
/
SHA2
SHA2
class
SHA2
(
type
:
SHA2.BitType
=
BitType.B256
)
:
ByteDigest
Members
Constructors
SHA2
Link copied to clipboard
constructor
(
type
:
SHA2.BitType
=
BitType.B256
)
Types
Bit
Type
Link copied to clipboard
enum class
BitType
:
Enum
<
SHA2.BitType
>
Functions
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