Skip to main content

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


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)

Uploaded Source

Built Distribution

pysqlitecrypto_rsa-0.2.2-py3-none-any.whl (16.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page