AESEncrypted class
AES CBC encryption template. Note: GCM is generally preferred over CBC for authenticated encryption.
Constructors
- AESEncrypted({String? seedId})
-
Creates an AES-CBC hook that encrypts string fields before storage.
const
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
postRead(
PHiveCtx ctx) → void - Decrypts a previously encrypted string value using the stored IV.
-
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 - Encrypts the current string value and stores the IV in PHive metadata.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited