Classical

data class Classical(val passphrase: String, val hash: KHashAlgorithm = KHashAlgorithm.SHA256) : KEncryptKeyType(source)

Classical symmetric encryption.

The passphrase (+ optional salt) is hashed with hash to derive an AES-GCM key. The hash determines the AES key size:

Parameters

passphrase

Secret used to derive the AES key.

hash

Hashing algorithm for key derivation. Default: SHA-256.

Constructors

Link copied to clipboard
constructor(passphrase: String, hash: KHashAlgorithm = KHashAlgorithm.SHA256)

Properties

Link copied to clipboard
Link copied to clipboard