com.github.rs3vans.krypto / EncryptCipher

EncryptCipher

interface EncryptCipher : Any

A contract for a cipher that can encrypt an instance of Decrypted, producing an instance of Encrypted.

Functions

encrypt abstract fun encrypt(decrypted: Decrypted): Encrypted

Inheritors

AsymmetricCipherPair class AsymmetricCipherPair : EncryptCipher, DecryptCipher

An encrypting/decrypting cipher which wraps both an AsymmetricEncryptCipher and a AsymmetricDecryptCipher.

AsymmetricEncryptCipher class AsymmetricEncryptCipher : ConcreteCipher, EncryptCipher

An encrypting-only cipher which uses an RSA-based PublicKey for encryption.

AuthenticatingBlockCipher class AuthenticatingBlockCipher : ConcreteCipher, EncryptCipher, DecryptCipher

An encrypting/decrypting cipher which uses the Galois-counter mode (GCM).

BlockCipher class BlockCipher : ConcreteCipher, EncryptCipher, DecryptCipher

An encrypting/decrypting cipher which uses the chained-block mode (CBC).