Skip to content

Remove secrets usage #44

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

Merged
merged 1 commit into from
Feb 28, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions util/decode_priv_key.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
===================================================================

Generates RSA keys and decodes them using python-rsa
for use with a CircuitPython secrets file.
for use with a CircuitPython settings.toml file.

This script is designed to run on a computer,
NOT a CircuitPython device.
Expand Down Expand Up @@ -36,5 +36,5 @@
print("No file named rsa_private.pem found in directory.")
pk = rsa.PrivateKey.load_pkcs1(private_key)

print("Copy and paste this into your secrets.py file:\n")
print('"private_key": ' + str(pk)[10:] + ",")
print("Copy and paste this into your settings.toml file:\n")
print(f'private_key="{str(pk)[10:]}"')