All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.justdevit.kotlin.boost.encryption.Key.kt Maven / Gradle / Ivy

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