A package for RSA encryption and decryption using SQLite storage.
Project description
Pysqlitecrypto-RSA
Pysqlitecrypto-RSA is a Python package that provides functionalities for RSA key generation, encryption, and decryption using SQLite storage.
Installation
To install Pysqlitecrypto-RSA, you can use pip:
pip install pysqlitecrypto-rsa
Make sure you have Python 3.x installed.
Usage
You can use Pysqlitecrypto-RSA in your Python projects by importing the necessary functions:
from pysqlitecrypto_rsa import generate_keys, encrypt_message, decrypt_message
# Generate RSA keys with a specified key size
key_size = 1024
generate_keys(key_size)
# Encrypt a message
encrypted_message = encrypt_message("Your message here")
# Decrypt the encrypted message
decrypted_message = decrypt_message(encrypted_message)
Note:
- The
generate_keys
function requires the key size to be passed as an argument. For example,generate_keys(1024)
generates RSA keys with a key size of 1024 bits. - The
generate_keys
function creates a folder called '.keychain' in the home directory, and inside it, a keys.db file is created to store the RSA keys.
License
Pysqlitecrypto-RSA is licensed under the GNU General Public License v3.0. See the LICENSE file for details.
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.0.2.tar.gz
(15.4 kB
view hashes)
Built Distribution
Close
Hashes for pysqlitecrypto_rsa-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa96d4dda9af7f70596660cf0a63b83eeb37d85f527fc875d3a071c50922e3bc |
|
MD5 | d1156fe62c6c1f407a0103175323429b |
|
BLAKE2b-256 | 98168b80b35cf317561bf2bfec0313a71117ea3b4d8b76ab695928886edc7232 |