SHA256KeyHasher

A KeyTransformer that transforms keys to an SHA-256 hash of them.

It caches the hashed keys to avoid recomputing them.

Functions

Link copied to clipboard
open suspend override fun transform(oldKey: String): String

Returns an SHA-256 hash of oldKey which may be newly generated or previously cached.