Package-level declarations

Types

Link copied to clipboard
object Algorithms

Symmetric-key block ciphers for performing encryption and decryption.

Link copied to clipboard
class ByteArrayEncryptionTransformer(encryptor: Encryptor) : ColumnTransformer<ByteArray, ByteArray>
Link copied to clipboard
class EncryptedBinaryColumnType(encryptor: Encryptor, length: Int) : ColumnWithTransform<ByteArray, ByteArray>

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

Link copied to clipboard
class EncryptedVarCharColumnType(encryptor: Encryptor, colLength: Int) : ColumnWithTransform<String, String>

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.

Link copied to clipboard
class StringEncryptionTransformer(encryptor: Encryptor) : ColumnTransformer<String, String>

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.