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

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 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