HashingTransformer

Transformer that stores the Hashed.encodedValue of a hashed value in a character column, using the provided hasher to verify the values read back out of it.

The hashing itself is performed by Hasher.hash, not by this transformer, so a value that is already stored is never hashed again when it is read and written back.

Constructors

Link copied to clipboard
constructor(hasher: Hasher)

Properties

Link copied to clipboard

Hasher this transformer hashes with, and verifies the values it reads against.

Functions

Link copied to clipboard
open override fun unwrap(value: Hashed): String
Link copied to clipboard
open override fun wrap(value: String): Hashed