SHA256KeyHasher

An object that implements KeyTransformer and transforms keys to an SHA-256 hash of them.

The last 1000 hashed values are cached in memory. This is used as the default KeyTransformer for any FileKache.

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.