![JAR search and dependency download from the Maven repository](/logo.png)
io.justdevit.kotlin.boost.encryption.Key.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of boost-commons Show documentation
Show all versions of boost-commons Show documentation
Library to boost working with Kotlin/JVM projects.
The newest version!
package io.justdevit.kotlin.boost.encryption
import javax.crypto.spec.PBEKeySpec
/**
* Represents a cryptographic key used for encryption and decryption.
*
* @param secretKey The secret key used for encryption and decryption.
* @param salt The salt value used for generating the secret key.
*/
class Key(secretKey: String, salt: String) :
PBEKeySpec(
secretKey.toCharArray(),
salt.toByteArray(),
SECRET_KEY_ITERATION_COUNT,
SECRET_KEY_LENGTH,
)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy