KotPreferences
Toggle table of contents
android
Target filter
android
Switch theme
Search in API
Skip to content
KotPreferences
encryption-aes
/
com.michaelflisar.kotpreferences.encryption.aes
/
StorageEncryptionAES
/
Companion
Companion
object
Companion
Members
Properties
DEFAULT_
ALGORITHM
Link copied to clipboard
const
val
DEFAULT_ALGORITHM
:
String
DEFAULT_
KEY_
ALGORITHM
Link copied to clipboard
const
val
DEFAULT_KEY_ALGORITHM
:
String
Functions
generate
Iv
Link copied to clipboard
fun
generateIv
(
)
:
IvParameterSpec
generate
Key
Link copied to clipboard
fun
generateKey
(
keyLength
:
Int
)
:
SecretKey
get
Iv
Link copied to clipboard
fun
getIv
(
iv
:
ByteArray
)
:
IvParameterSpec
get
Key
From
Password
Link copied to clipboard
fun
getKeyFromPassword
(
algorithm
:
String
=
DEFAULT_KEY_ALGORITHM
,
password
:
String
,
salt
:
String
,
iterations
:
Int
=
65536
,
keyLength
:
Int
=
256
)
:
SecretKey