toggle menu
lattice-kt
1.0-SNAPSHOT
jvm
switch theme
search in API
crypto
/
com.example.crypto.api.kdf
/
PBKDF2
PBKDF2
interface
PBKDF2
密钥派生函数:Password-Based Key Derivation Function 2,通常用于从用户提供的密码派生出加密密钥,以保护用户的私钥或其他敏感信息
Inheritors
PBKDF2Impl
Members
Functions
derive
Link copied to clipboard
abstract
fun
derive
(
pass
:
ByteArray
,
salt
:
ByteArray
?
,
iterations
:
Int
=
2048
,
digestParams
:
DigestParams
=
DigestParams.Sha512
)
:
ByteArray
abstract
fun
derive
(
pass
:
CharArray
,
salt
:
ByteArray
?
,
iterations
:
Int
=
2048
,
digestParams
:
DigestParams
=
DigestParams.Sha512
)
:
ByteArray