![JAR search and dependency download from the Maven repository](/logo.png)
io.justdevit.kotlin.boost.encryption.AesCipherFactory.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.Cipher
import javax.crypto.SecretKey
import javax.crypto.spec.IvParameterSpec
class AesCipherFactory(private val initialVector: IvParameterSpec, private val secretKey: SecretKey) : CipherFactory {
override fun createCipher(mode: Int): Cipher {
val cipher = Cipher.getInstance(AES_CIPHER_ALGORITHM)
cipher.init(mode, secretKey, initialVector)
return cipher
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy