EncryptedStorage class
Enterprise encrypted scan storage engine providing AES-256-CBC encryption with PBKDF2-like key derivation for secure scan result persistence.
All encryption is pure Dart — no native dependencies required.
Constructors
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
-
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
Static Methods
-
decrypt(
EncryptedScanData encrypted, {required String password, bool ignoreExpiry = false}) → ScanResult? - Decrypts an EncryptedScanData envelope back to a ScanResult.
-
decryptBatch(
EncryptedScanData encrypted, {required String password, bool ignoreExpiry = false}) → List< ScanResult> ? - Decrypts a batch-encrypted bundle back to a list of ScanResult.
-
encrypt(
ScanResult result, {required String password, Duration? ttl}) → EncryptedScanData -
Encrypts a ScanResult using AES-256-CBC with the given
password. -
encryptBatch(
List< ScanResult> results, {required String password, Duration? ttl}) → EncryptedScanData - Encrypts a list of ScanResult items into a single encrypted bundle.
-
validatePassword(
EncryptedScanData encrypted, {required String password}) → bool -
Validates whether the given
passwordcan decrypt theencrypteddata.