Back to Exposed

HashingTransformer

docs/api/exposed-crypt/org.jetbrains.exposed.v1.crypt/-hashing-transformer/index.html

1.5.01.7 KB
Original Source

HashingTransformer

class HashingTransformer(val hasher: Hasher) : ColumnTransformer<String, Hashed>

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.

Members

Constructors

HashingTransformer

Link copied to clipboard

constructor(hasher: Hasher)

Properties

hasher

Link copied to clipboard

val hasher: Hasher

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

Functions

unwrap

Link copied to clipboard

open override fun unwrap(value: Hashed): String

wrap

Link copied to clipboard

open override fun wrap(value: String): Hashed

Generated by Dokka © 2026 Copyright