EncryptedScanData class
Encrypted data envelope containing ciphertext, IV, salt, and metadata.
Constructors
- EncryptedScanData({required Uint8List ciphertext, required Uint8List iv, required Uint8List salt, required DateTime encryptedAt, DateTime? expiresAt, String? modeHint})
-
const
-
EncryptedScanData.fromJson(Map<
String, dynamic> json) -
Deserializes from JSON-compatible map.
factory
- EncryptedScanData.fromJsonString(String jsonStr)
-
Deserializes from JSON string.
factory
Properties
- ciphertext → Uint8List
-
Encrypted ciphertext byte buffer.
final
- encryptedAt → DateTime
-
Timestamp when the data was encrypted.
final
- expiresAt → DateTime?
-
Optional expiry timestamp for auto-expiration.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isExpired → bool
-
Whether this encrypted data has expired.
no setter
- iv → Uint8List
-
Initialization vector used for encryption.
final
- modeHint → String?
-
Scan mode identifier stored as metadata (not encrypted).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- salt → Uint8List
-
Salt used for key derivation.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Serializes to JSON-compatible map for storage.
-
toJsonString(
) → String - Serializes to JSON string.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited