RapidRSA
Simpler to use implementation of the pycryptodome RSA algorithm
Example Use
message = "Example Text"
rsa = rsa()
e = rsa.encrypt(message)
d = rsa.decrypt(e)
Easily Create and Verify Signatures
message = "Example Text"
rsa = rsa()
e = rsa.encrypt(message)
signature, digest = rsa.create_signature(message)
if rsa.verify_signature(signature, digest):
d = rsa.decrypt(e)
Required Dependences From PyPi
pycryptodome == 3.14.1
Documentation
'''
Classes:
rsa(key_size=2048, public_key=None, private_key=None)
Can be fully functional and secure without passing any arguments
Methods:
keygen(self, key_size: int) -> bytes and bytes
Generates Keys for Encryption/Decryption. The 'key_size' will determine the security
and speed of your data (bigger is more secure, but slower)
encrypt(self, data: str or bytes, public_key=None) -> bytes
Only requires a public key if you don't want to use the class generated key
decrypt(self, encrypted_text: bytes, private_key=None) -> str or bytes
Only requires a private key if you don't want to use the class generated key
create_signature(self, data: str, private_key=None) -> bytes and object
Creates a signature for later verifcation that the data hasn't been tampered
with during transport
verify_signature(self, signature: bytes, digest: object, public_key=None) -> bool
Verifies the signature of the data, ensuring the data hasn't been tampered with
generate_password(self, length=64) -> str
Generates a random password to share with the client/server for symmetric cryptography
'''
Metadata
Release files for rapidrsa 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| rapidrsa-0.0.6.tar.gz | 4.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rapidrsa-0.0.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.1 kB
Release files / rapidrsa-0.0.6.tar.gz
| Download URL | rapidrsa-0.0.6.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
624994b8eab617e8e23dd3eb5b26e1e4563ea9eb0bf312a42d725f5563062093
|
|
BLAKE2b-256 checksum How to use checksums |
783d8d1e7c5343964754e1725e0b08d862d9641a267a3a08ff6a493c67e5d217
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10
|
Release files / rapidrsa-0.0.6-py3-none-any.whl
| Download URL | rapidrsa-0.0.6-py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6fa1dd830b92622703ca3eba0566a8545911581a8dd02bb2938ab9dc289b1624
|
|
BLAKE2b-256 checksum How to use checksums |
ed4c2c976f62bdfdcc881cb0109bdd94a44e68511b075b4890dcad810e742b5b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10
|
Security for rapidrsa 0.0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.