Skip to main content

Python 3 bindings for juce::RSAKey

Installation

Tested in both Windows and Linux. To use the package, simply install it using pip:

python3 -m pip install juce_rsa

Usage

import juce_rsa

# You can create a new key pair or instantiate a juce_rsa.RSAKey()
pub, priv = juce_rsa.create_key_pair(1024)

# Use the public key to encrypt a secret
secret=3
encrypted = pub.apply(secret)

# Use the private key to decrypt the secret
decrypted = priv.apply(encrypted)

print(encrypted, secret, decrypted)
assert(secret == decrypted)

You can also instantiate RSAKey objects by using the string produced by the juce::RSAKey::toString() method.

key = juce_rsa.RSAKey("648929cb8e96db2df812d9d775ffaacb93e1d7261f54c12f3cbc824d774d91995d942c4b487b3dd895b5b33ff2fb2c8bc2b41c4e9e238e3519f417918c479c3d, 7dab743e723c91f97617904d537f957e78da4cefa729f17b0beba2e0d520f6011d8f0ddd3bb30d3c2486972fc46d8abd93826595711fd429b6f2efbde2762895")

Metadata

Release files for juce-rsa 0.1

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

Source distribution (sdist)

Source distribution for juce-rsa 0.1
File Size Uploaded Provenance
juce_rsa-0.1.tar.gz 5.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for juce-rsa 0.1
File Interpreter ABI Platform
juce_rsa-0.1-cp38-cp38-win_amd64.whl CPython 3.8 CPython 3.8 Windows x86-64 Details

Total release size: 71.6 kB

Release files / juce_rsa-0.1.tar.gz

Download URL juce_rsa-0.1.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
ac16bc2aafc1d2787aa9fd3804c087626ceeafcb36484cdf4c755e9ee0e5f88a
BLAKE2b-256 checksum
How to use checksums
56b4afea3ff3da7455edc1aca63df8b7bc73bf6540d0f532293e75020dbd8d9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

Release files / juce_rsa-0.1-cp38-cp38-win_amd64.whl

Download URL juce_rsa-0.1-cp38-cp38-win_amd64.whl
Size 66.0 kB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
345ed44283776a5bb699640f3899eb60ab503e3a7497b9ca543804a212ddf224
BLAKE2b-256 checksum
How to use checksums
ef11f835188a60ff48ecc3eed6ed7aec178389aeb8d3a093a03bd732120f84db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

Security for juce-rsa 0.1

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.1 This release

2 release files 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