BaseCiphers

Default provider implementations for the core KeePass ciphers.

Entries

Link copied to clipboard

AES-256, also known as Rijndael, is a symmetric-key block cipher specified in the Advanced Encryption Standard (AES). It uses a 256-bit key for encryption and decryption, and operates on a fixed block size of 128 bits. AES-256 is widely recognized for its high level of security.

Link copied to clipboard

ChaCha20 is a stream cipher developed by Daniel J. Bernstein, based on the Salsa20 cipher. It was designed to increase diffusion and performance on various architectures. It is widely used for its efficiency, security, and lack of patent restrictions.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
abstract val ivLength: UInt

The IV length depends on cryptographic primitive used by implementation.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract val uuid: UUID

Each cipher used for database encryption has unique ID.

Functions

Link copied to clipboard
abstract fun decrypt(key: ByteArray, iv: ByteArray, data: ByteArray): ByteArray

Decrypt the data using provided key and iv.

Link copied to clipboard
abstract fun encrypt(key: ByteArray, iv: ByteArray, data: ByteArray): ByteArray

Encrypt the data using provided key and iv.

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.