toggle menu
hexagon
3.2.1
jvm
switch theme
search in API
core
/
com.hexagonkt.core.security
Package-level
declarations
Cryptography and key stores utilities.
Functions
Functions
chain
Hmac
Link copied to clipboard
fun
chainHmac
(
algorithm
:
String
,
vararg
fields
:
String
)
:
ByteArray
get
Private
Key
Link copied to clipboard
fun
KeyStore
.
getPrivateKey
(
alias
:
String
,
password
:
String
)
:
RSAPrivateKey
get
Public
Key
Link copied to clipboard
fun
KeyStore
.
getPublicKey
(
alias
:
String
)
:
RSAPublicKey
hash
Link copied to clipboard
fun
hash
(
algorithm
:
String
,
data
:
ByteArray
)
:
ByteArray
fun
hash
(
algorithm
:
String
,
data
:
String
)
:
ByteArray
hmac
Link copied to clipboard
fun
hmac
(
algorithm
:
String
,
data
:
ByteArray
,
key
:
ByteArray
)
:
ByteArray
load
Key
Store
Link copied to clipboard
fun
loadKeyStore
(
resource
:
URL
,
password
:
String
)
:
KeyStore
sign
Link copied to clipboard
fun
sign
(
algorithm
:
String
,
data
:
String
,
key
:
ByteArray
)
:
ByteArray