A package for RSA encryption and decryption using SQLite storage.
Project description
pysqlitecrypto_rsa
This package provides functionality for managing RSA keys and encrypting/decrypting messages using SQLite databases.
Functions Available for Import
Keychain Operations
generate_keys(key_size: int, re_create: bool, db_filename: str = "keys") -> bool
Generates RSA keys and stores them in an SQLite database.
key_size
: The size of the RSA keys to be generated.re_create
: Whether to recreate the keychain directory and database if they already exist.db_filename
: The name of the database file. Defaults to "keys".
Encryption Operations
encrypt_message(message: str, db_filename: str = "keys") -> Union[bytes, None]
Encrypts a message using the public key stored in the specified database.
message
: The message to be encrypted.db_filename
: The name of the database file. Defaults to "keys".
decrypt_message(encrypted_message: bytes, db_filename: str = "keys") -> Union[str, None]
Decrypts an encrypted message using the private key stored in the specified database.
encrypted_message
: The encrypted message to be decrypted.db_filename
: The name of the database file. Defaults to "keys".
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pysqlitecrypto-rsa-0.2.2.tar.gz
(15.5 kB
view hashes)
Built Distribution
Close
Hashes for pysqlitecrypto_rsa-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4bc6fbcf7a50a1366f703e62258579ccd7e70aa6434d88b307294bb74bf3021c |
|
MD5 | 367acbe4ca7f4fc4cddebfe2c97c2e0a |
|
BLAKE2b-256 | c82e31c197df2b1f2611c3457d0c0b768d2b4544ffca0e2e213460e5bd22d3ab |