Skip to main content

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!

Metadata

Release files for juce-rsa-python 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for juce-rsa-python 0.0.4
File Interpreter ABI Platform Actions
juce_rsa_python-0.0.4-py3-none-any.whl Python 3 none any Details for juce_rsa_python-0.0.4-py3-none-any.whl

Release files / juce_rsa_python-0.0.4-py3-none-any.whl

Download URL juce_rsa_python-0.0.4-py3-none-any.whl
Size 14.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c7577c6465cef11ff9c2221cc3a5679ba509c2948d32e8923648ccfe21f2ac20
BLAKE2b-256 checksum
How to use checksums
b27522637d71945f94133eff5e75b5017950188f2ebaaaec40c018262a6b29c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.0

Security for juce-rsa-python 0.0.4

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.

Release history Release notifications | RSS feed

This release

0.0.4 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page