Adafruit_CircuitPython_RSA

RSA implementation for CircuitPython based on python-rsa

OTHER License

Downloads
1.3K
Stars
10
Committers
10

Bot releases are hidden (Show)

Adafruit_CircuitPython_RSA - 1.2.2 - Fixed issue with Black and Pylint versions in the pre-commit config

Published by evaherrada over 3 years ago

To use in CircuitPython, simply install the Adafruit CircuitPython bundle.

To use in CPython, pip3 install adafruit-circuitpython-rsa.

Read the docs for info on how to use it.

Adafruit_CircuitPython_RSA - 1.2.1 - Moved to pre-commit, added licensing info

Published by evaherrada over 3 years ago

pre-commit has been added to the GitHub Actions workflow in this repository. pre-commit allows you to run multiple checks, such as black and checking the REUSE licensing compliance, both locally and on GitHub Actions with one command.

You can run pre-commit locally with pre-commit run --all-files

To use in CircuitPython, simply install the Adafruit CircuitPython bundle.

To use in CPython, pip3 install adafruit-circuitpython-rsa.

Read the docs for info on how to use it.

Adafruit_CircuitPython_RSA - 1.2.0 - Fixes for examples

Published by brentru about 4 years ago

This release:

To use in CircuitPython, simply install the Adafruit CircuitPython bundle.

To use in CPython, pip3 install adafruit-circuitpython-rsa.

Read the docs for info on how to use it.

Adafruit_CircuitPython_RSA - 1.1.1 - Fixed discord invite link, added Black formatting check

Published by evaherrada over 4 years ago

To use in CircuitPython, simply install the Adafruit CircuitPython bundle.

To use in CPython, pip3 install adafruit-circuitpython-rsa.

Read the docs for info on how to use it.

Adafruit_CircuitPython_RSA - 1.1.0 - Upgrade to latest Pylint, implement Black formatting

Published by FoamyGuy over 4 years ago

We have upgraded Pylint checks to use the latest version of Pylint and implemented usage of Black Python formatting. This does not change the functionality of the code - it is designed to bring it up to current standards and make it more readable.

  • Remove pinned Pylint version number from build.yml file
  • Synced .pylintrc file to match Adafruit standard
  • Ran upgraded Pylint and applied any changes or new disables necessary
  • Ran Black formatter and allowed application of changes across entire repo

For more information on using Pylint and Black on your code, check out this guide on working with Pylint and Black

To use in CircuitPython, simply install the Adafruit CircuitPython bundle.

To use in CPython, pip3 install adafruit-circuitpython-rsa.

Read the docs for info on how to use it.

Adafruit_CircuitPython_RSA - 1.0.3 - Changed CI from Travis to GitHub Actions

Published by evaherrada over 4 years ago

This release includes:

  • Migrating this repository from Travis to GitHub Actions. This has no effect on the behavior of the code itself.

To use in CircuitPython, simply install the Adafruit CircuitPython bundle.

Read the docs for info on how to use it.

Adafruit_CircuitPython_RSA - Add CircuitPython __version__ and __repo__

Published by brentru about 5 years ago

  • Adds appropriate __version__ and __repo__ strings to adafruit_rsa/*.py files for CircuitPython consistency.

  • __version__ string reflecting the python-rsa version in __init__.py commented out.

To use in CircuitPython, simply install the Adafruit CircuitPython bundle.

Read the docs for info on how to use it.

Adafruit_CircuitPython_RSA - Fixing extra-zero-append error, adding an utilities folder

Published by brentru about 5 years ago

Fixes extra-zero-append error within transform.py/int2bytes causing invalid RSA signatures.

Adds util/ folder with script to run on your computer (not the CircuitPython device) to generate public (rsa_public.pem) and private(rsa_private.pem) key pairs. The script also decodes the generated rsa_private.pem into a PrivateKey tuple for copy/paste into a secrets.py dict. file on a CircuitPython board.

To use in CircuitPython, simply install the Adafruit CircuitPython bundle.

Read the docs for info on how to use it.

Adafruit_CircuitPython_RSA - Initial Release - CircuitPython_RSA

Published by brentru about 5 years ago

CircuitPython_RSA is a port of Python-RSA, a pure-Python RSA implementation to CircuitPython.

Modifications from Python-RSA

  • Command-line-specific tools have been removed from the library to save space.
  • CPython Logging has been replaced with the Adafruit CircuitPython Logger Module.
  • Miller–Rabin Primality test algorithm modified to support library's fast_pow, CircuitPython's pow() does not support modular exponentiation.
  • CPython binascii and hashlib modules replaced with Adafruit_CircuitPython_binascii and Adafruit_CircuitPython_hashlib

Support for:

  • RSA Key pair (private/public) generation
  • Message encryption and decryption
  • Signature creation and verification
    • w/SHA-256, SHA-384, SHA-512 (using Adafruit_CircuitPython_hashlib, pure-python implementation. SHA-1 and MD5 are currently unsupported.)

Examples are provided for signature creation/verification, keypair generation and encryption/decryption, and a unit-test-like for testing future modifications to this library.

To use in CircuitPython, simply install the Adafruit CircuitPython bundle.

Read the docs for info on how to use it.

Package Rankings
Top 9.87% on Pypi.org
Related Projects