pysqlitecrypto-rsa


Namepysqlitecrypto-rsa JSON
Version 0.2.2 PyPI version JSON
download
home_pagehttps://github.com/hecdelatorre/Pysqlitecrypto-RSA.git
SummaryA package for RSA encryption and decryption using SQLite storage.
upload_time2024-02-16 19:37:14
maintainer
docs_urlNone
authorhecdelatorre
requires_python
licenseGPL-3.0
keywords rsa encryption decryption sqlite cryptography
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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".

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/hecdelatorre/Pysqlitecrypto-RSA.git",
    "name": "pysqlitecrypto-rsa",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "RSA encryption decryption SQLite cryptography",
    "author": "hecdelatorre",
    "author_email": "hector982015@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/fb/eb/e4aa177119cecedfbead3567cddbb92136b5dc419eab22cc7c6a8b97edb9/pysqlitecrypto-rsa-0.2.2.tar.gz",
    "platform": null,
    "description": "# pysqlitecrypto_rsa\n\nThis package provides functionality for managing RSA keys and encrypting/decrypting messages using SQLite databases.\n\n## Functions Available for Import\n\n### Keychain Operations\n\n#### `generate_keys(key_size: int, re_create: bool, db_filename: str = \"keys\") -> bool`\n\nGenerates RSA keys and stores them in an SQLite database.\n\n- `key_size`: The size of the RSA keys to be generated.\n- `re_create`: Whether to recreate the keychain directory and database if they already exist.\n- `db_filename`: The name of the database file. Defaults to \"keys\".\n\n### Encryption Operations\n\n#### `encrypt_message(message: str, db_filename: str = \"keys\") -> Union[bytes, None]`\n\nEncrypts a message using the public key stored in the specified database.\n\n- `message`: The message to be encrypted.\n- `db_filename`: The name of the database file. Defaults to \"keys\".\n\n#### `decrypt_message(encrypted_message: bytes, db_filename: str = \"keys\") -> Union[str, None]`\n\nDecrypts an encrypted message using the private key stored in the specified database.\n\n- `encrypted_message`: The encrypted message to be decrypted.\n- `db_filename`: The name of the database file. Defaults to \"keys\".\n",
    "bugtrack_url": null,
    "license": "GPL-3.0",
    "summary": "A package for RSA encryption and decryption using SQLite storage.",
    "version": "0.2.2",
    "project_urls": {
        "Homepage": "https://github.com/hecdelatorre/Pysqlitecrypto-RSA.git"
    },
    "split_keywords": [
        "rsa",
        "encryption",
        "decryption",
        "sqlite",
        "cryptography"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c82e31c197df2b1f2611c3457d0c0b768d2b4544ffca0e2e213460e5bd22d3ab",
                "md5": "367acbe4ca7f4fc4cddebfe2c97c2e0a",
                "sha256": "4bc6fbcf7a50a1366f703e62258579ccd7e70aa6434d88b307294bb74bf3021c"
            },
            "downloads": -1,
            "filename": "pysqlitecrypto_rsa-0.2.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "367acbe4ca7f4fc4cddebfe2c97c2e0a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 16497,
            "upload_time": "2024-02-16T19:37:12",
            "upload_time_iso_8601": "2024-02-16T19:37:12.776234Z",
            "url": "https://files.pythonhosted.org/packages/c8/2e/31c197df2b1f2611c3457d0c0b768d2b4544ffca0e2e213460e5bd22d3ab/pysqlitecrypto_rsa-0.2.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fbebe4aa177119cecedfbead3567cddbb92136b5dc419eab22cc7c6a8b97edb9",
                "md5": "add1d283308d56ef26438e58db7c844d",
                "sha256": "3a28ad52a227fc185a8d968aeea5dc954fa8b629e512cff2ca5270984651be16"
            },
            "downloads": -1,
            "filename": "pysqlitecrypto-rsa-0.2.2.tar.gz",
            "has_sig": false,
            "md5_digest": "add1d283308d56ef26438e58db7c844d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 15452,
            "upload_time": "2024-02-16T19:37:14",
            "upload_time_iso_8601": "2024-02-16T19:37:14.425500Z",
            "url": "https://files.pythonhosted.org/packages/fb/eb/e4aa177119cecedfbead3567cddbb92136b5dc419eab22cc7c6a8b97edb9/pysqlitecrypto-rsa-0.2.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-16 19:37:14",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "hecdelatorre",
    "github_project": "Pysqlitecrypto-RSA",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "pysqlitecrypto-rsa"
}
        
Elapsed time: 0.19222s