SymmetricEncryption

sealed class SymmetricEncryption : KipherProvider

Base class for encryption.

Parameters

algorithm

Encryption algorithm to use. (e.g. AES, ChaCha20)

Inheritors

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open var defaultKeySize: Int?

Default key size to use for KeyGenerator.

Link copied to clipboard
abstract val ivLength: Int

IV/nonce length.

Functions

Link copied to clipboard

Concatenate the encryption details from a Map data.

Link copied to clipboard

Extracts the iv, data from a ByteArray data.

Link copied to clipboard

Generate IV based on ivLength.

Link copied to clipboard
fun generateKey(@Nullable size: Int? = defaultKeySize): ByteArray

Generate secret key based on optional key size.