Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

json key file example #41

Merged
merged 1 commit into from
Mar 22, 2024
Merged

Conversation

FoamyGuy
Copy link
Contributor

Adds an example that loads public and private keys from JSON files that store a list of the large int arguments that are passed to PublicKey and PrivateKey init functions.

For these keys I created them on the PC with openssl and then converted them into this format with CPython and python-rsa. I think it should be possible to generate the keys on the microcontroller and save them into this format, however with the caveat about storage being readonly by default so it would need to store them somewhere else unless it's made writable. I have not attempted that yet.

@FoamyGuy FoamyGuy requested a review from a team March 22, 2024 01:59
Copy link
Member

@tekktrik tekktrik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Examples are always good!

@FoamyGuy FoamyGuy merged commit 5dcfc26 into adafruit:main Mar 22, 2024
1 check passed
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants