encryptedBinary

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

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

Parameters

name

Name of the column

cipherByteLength

Maximum expected length of encrypted value in bytes

encryptor

Encryptor responsible for performing encryption and decryption of stored values

Samples

org.jetbrains.exposed.crypt.EncryptedColumnTests.testEncryptedColumnTypeWithAString