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:
KHashAlgorithm.SHA256 → AES-256
KHashAlgorithm.SHA1 → AES-128
Parameters
passphrase
Secret used to derive the AES key.
hash
Hashing algorithm for key derivation. Default: SHA-256.