generate deterministic RSA key pair and perform encrypt and decrypt operations
Project description
deterministic-rsa-keygen
Use pycryptodome to generate a deterministic RSA key pair and perform encrypt and decrypt operations
Install
pip install deterministic-rsa-keygen
Ussage
from rsa import generate_key, encrypt, decrypt
# as alternatives you can use a bit39 phrase or another key as seed
secret_key = generate_key("the derived key cannot be stronger than this seed")
private_key = secret_key.exportKey("PEM")
public_key = secret_key.publickey().exportKey("PEM")
secret = encrypt("secret", public_key)
assert decrypt(secret, private_key) == bytes("secret", 'utf-8')
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
Close
Hashes for deterministic-rsa-keygen-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a00187f8ff33b04082eba3ecc86b1d38eaa5f71185b46f24e8c9d6061387e3b |
|
MD5 | 36c2b956f013ac73db5300992dc526c3 |
|
BLAKE2b-256 | 0183896a8608a2f5c7d8b54cf29734ec17cf7fc6fc3138fda0c205f614547959 |
Close
Hashes for deterministic_rsa_keygen-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26605b1d1f4c9b85509f31c6d2f983a0b3938547f07a36abdc796222f8f717b3 |
|
MD5 | 350a4ea914fd6bf6fd485d20b35d270c |
|
BLAKE2b-256 | 8b30e3e27686496b66a8caf550dab73e8d0cf1b16fa83592d8c918a9687b1be1 |