A juce RSA algorithm implementation without compiling C++ source code
Project description
Juce RSA Python
This is a juce RSA algorithm implementation without compiling C++ source code
Install
pip3 install juce-rsa-python
Usage
from juce_rsa_python import JuceRSA
public_key = '11,76e78a6f1f8158f8bbc85d7737218096953fedfa823a4ed45e884c3b7e7d3d0fe99cfdeae8fc5abdc1451fce4894fac9b19ae0b30973041b531753153f6f29ab'
private_key = '5aed4bbe6362e9af262fcf00cfce5345f9a95ba172a50f1adee0b2c4156ed4566ad34d099ef3157a74cd8b43b1b3072e44aeb65db623a66976435b59edbe0069,76e78a6f1f8158f8bbc85d7737218096953fedfa823a4ed45e884c3b7e7d3d0fe99cfdeae8fc5abdc1451fce4894fac9b19ae0b30973041b531753153f6f29ab'
text = 'Hello World!'
# encrypt
public_juce_rsa = JuceRSA(public_key)
encrypted = public_juce_rsa.encrypt(text)
# print(encrypted)
# e72a9ff9b0b36bf96e5fa6a6820a9f86f11b2a82594185731368c01e466ccb24fd2c29a87ac9cd025a4f45e6b1cacf39cc2c5906d139f21f09cbcaa0f7277fb
# decrypt
private_juce_rsa = JuceRSA(private_key)
decrypted = private_juce_rsa.decrypt(encrypted)
# print(decrypted)
# Hello World!
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for juce_rsa_python-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7577c6465cef11ff9c2221cc3a5679ba509c2948d32e8923648ccfe21f2ac20 |
|
MD5 | 066fb5030203f77da559fff77fc78137 |
|
BLAKE2b-256 | b27522637d71945f94133eff5e75b5017950188f2ebaaaec40c018262a6b29c3 |