UniversalEncrypted class
Generic AES-GCM encryption hook for JSON-serializable values.
Constructors
- UniversalEncrypted({String? seedId})
-
Creates a generic encryption hook for JSON-serializable values.
const
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
postRead(
PHiveCtx ctx) → void - Decrypts and attempts to JSON-decode a previously encrypted value.
-
postWrite(
PHiveCtx ctx) → void -
Runs after a field value has been serialized for storage.
inherited
-
preRead(
PHiveCtx ctx) → void -
Runs before adapter logic consumes a value restored from storage.
inherited
-
preWrite(
PHiveCtx ctx) → void - Serializes and encrypts the current value, storing the nonce in metadata.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited