Package-level declarations

Types

Link copied to clipboard
object Algorithms

Symmetric-key block ciphers for performing encryption and decryption.

Link copied to clipboard

Binary column for storing encrypted binary strings of a specific length, using the provided encryptor.

Link copied to clipboard

Character column for storing encrypted strings, using the provided encryptor, with the specified maximum colLength.

Link copied to clipboard
class Encryptor(val encryptFn: (String) -> String, val decryptFn: (String) -> String, val maxColLengthFn: (Int) -> Int)

Base cipher class responsible for the encryption and decryption of data.

Functions

Link copied to clipboard
fun Table.encryptedBinary(name: String, cipherByteLength: Int, encryptor: Encryptor): Column<ByteArray>

Creates a binary column, with the specified name, for storing encrypted binary strings.

Link copied to clipboard
fun Table.encryptedVarchar(name: String, cipherTextLength: Int, encryptor: Encryptor): Column<String>

Creates a character column, with the specified name, for storing encrypted strings.