DBSWHiveSecurity class

A class that handles the security of a NoSQL database by generating and storing an encryption key for AES data encryption. It uses FlutterSecureStorage to securely store the encryption key.

Constructors

DBSWHiveSecurity.new()

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

deleteSecureKey() Future<void>
generateAndSaveSecureKeyIfNotExist() Future<void>
This method reads the secure key from the secure storage. If the key does not exist, it generates a new key and saves it to the secure storage. If the key already exists, this method does nothing.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readEncryptionCipher() Future<HiveCipher>
Reads the encryption cipher from secure storage and returns a HiveCipher object.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited