apikeyper.crypt package
Submodules
apikeyper.crypt.encryption_key module
Filename: encryption_key Author: tayja Date: 8/3/2023 Description:
- class apikeyper.crypt.encryption_key.EncryptionKey(storage_method, key_file=None, sftp_details=None)[source]
Bases:
objectA class that represents an encryption key. This class supports multiple storage methods.
- apikeyper.crypt.encryption_key.get_key_from_file(key_file)[source]
Retrieve the encryption key from a file. If the file doesn’t exist, generate a new key and save it to the file.
Module contents
Project: APIKeyPER Author: Inspyre Softworks - https://inspyre.tech Created: 5/21/2023 @ 10:24 PM File:
Name: __init__.py Filepath: apikeyper/crypt
- class apikeyper.crypt.CryptDB(file_path=None, encryption_key=None)[source]
Bases:
objectA class that represents an encrypted database. This database supports encryption using Fernet symmetric encryption.
- decrypt(encrypted_message)[source]
Decrypt an encrypted message using the Fernet symmetric encryption.
- export(export_path)[source]
Export the decrypted database data to a JSON or XML file.
- Parameters:
export_path (str) – The path to the file where the decrypted data will be exported.
- load()[source]
Load the database state from the encrypted file.
- Returns:
The decrypted and deserialized database data.
- Return type: