Skip to content

Releases: adafruit/Adafruit_CircuitPython_RSA

1.2.3 - Moved pylint from build.yml to .pre-commit-config.yml

03 Mar 00:00
Compare
Choose a tag to compare

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.

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

10 Feb 22:31
Compare
Choose a tag to compare

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.

1.2.1 - Moved to pre-commit, added licensing info

22 Jan 20:08
bc37346
Compare
Choose a tag to compare

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.

1.2.0 - Fixes for examples

10 Aug 13:08
88c1c06
Compare
Choose a tag to compare

This release:

  • Fixes #14 errors caused by sha_test_sign_verify when running rsa_tests.py. Thanks @dherrada.
  • #12 Checks if number passed into int2bytes is an integer type. Thanks @dherrada

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.

1.1.1 - Fixed discord invite link, added Black formatting check

09 Jul 19:37
Compare
Choose a tag to compare

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.

1.1.0 - Upgrade to latest Pylint, implement Black formatting

17 Mar 22:40
53b2b13
Compare
Choose a tag to compare

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.

1.0.3 - Changed CI from Travis to GitHub Actions

22 Jan 01:19
Compare
Choose a tag to compare

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.

Add CircuitPython __version__ and __repo__

09 Sep 16:16
1ff9b4b
Compare
Choose a tag to compare
  • 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.

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

21 Aug 20:08
4024b7c
Compare
Choose a tag to compare

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.

Initial Release - CircuitPython_RSA

20 Aug 15:28
f253a47
Compare
Choose a tag to compare

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.