LokEncryptedAccessStrategy¶
Inherits:
The LokEncryptedAccessStrategy class is responsible for implementing encrypted data accessing.
Description¶
This class inherits from the LokAccessStrategy in order to implement its _save_partition and _load_partition methods and with that provide saving and loading functionalities for encrypted data.
Version: 1.0.0 Author: github.com/nadjiel <github.com/nadjiel>_
Property Index¶
Type |
Name |
Default value |
|---|---|---|
String |
Method Index¶
Property Descriptions¶
String password¶
The password property is used when encrypting/ decrypting data, so it must be set to a password intended before starting using this class.
Method Descriptions¶
Dictionary _save_partition(String partition_path, Dictionary data, bool replace = false)¶
The _save_partition method overrides its super counterpart LokAccessStrategy._save_partition in order to provide data saving in a encrypted format.
When finished, this method returns a Dictionary with the data it saved.
To read more about the parameters of this method, see LokAccessStrategy._save_partition.
Dictionary _load_partition(String partition_path)¶
The _load_partition method overrides its super counterpart LokAccessStrategy._load_partition in order to provide encrypted data loading. When finished, this method returns a Dictionary with the data it loaded. To read more about the parameters of this method and the format of its return, see LokAccessStrategy._load_partition.