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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pysqlitecrypto-rsa-0.2.2.tar.gz.
File metadata
- Download URL: pysqlitecrypto-rsa-0.2.2.tar.gz
- Upload date:
- Size: 15.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a28ad52a227fc185a8d968aeea5dc954fa8b629e512cff2ca5270984651be16
|
|
| MD5 |
add1d283308d56ef26438e58db7c844d
|
|
| BLAKE2b-256 |
fbebe4aa177119cecedfbead3567cddbb92136b5dc419eab22cc7c6a8b97edb9
|
File details
Details for the file pysqlitecrypto_rsa-0.2.2-py3-none-any.whl.
File metadata
- Download URL: pysqlitecrypto_rsa-0.2.2-py3-none-any.whl
- Upload date:
- Size: 16.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4bc6fbcf7a50a1366f703e62258579ccd7e70aa6434d88b307294bb74bf3021c
|
|
| MD5 |
367acbe4ca7f4fc4cddebfe2c97c2e0a
|
|
| BLAKE2b-256 |
c82e31c197df2b1f2611c3457d0c0b768d2b4544ffca0e2e213460e5bd22d3ab
|