CryptCacheEncrypter class
The default CacheEncrypter of a Dox app. It uses Crypt, so the
APP_KEY of the app is the key, and AppConfig.previousKeys can still
decrypt old entries.
encrypt throws a StateError when APP_KEY is empty.
Crypt reads the config at call time, so each isolate uses its own.
- Implemented types
Constructors
- CryptCacheEncrypter()
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
decrypt(
String text) → String -
The text of
textmade by encrypt. Throws whentextwas changed or made with another key. A driver treats that as a cache miss.override -
encrypt(
String text) → String -
textas secret text.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited