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

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
seedId String?
Optional seed identifier used to select a stored encryption key.
final

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