We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 49ee9b1 + 9aa4c6e commit fb2f017Copy full SHA for fb2f017
util/decode_priv_key.py
@@ -8,7 +8,7 @@
8
===================================================================
9
10
Generates RSA keys and decodes them using python-rsa
11
-for use with a CircuitPython secrets file.
+for use with a CircuitPython settings.toml file.
12
13
This script is designed to run on a computer,
14
NOT a CircuitPython device.
@@ -36,5 +36,5 @@
36
print("No file named rsa_private.pem found in directory.")
37
pk = rsa.PrivateKey.load_pkcs1(private_key)
38
39
-print("Copy and paste this into your secrets.py file:\n")
40
-print('"private_key": ' + str(pk)[10:] + ",")
+print("Copy and paste this into your settings.toml file:\n")
+print(f'private_key="{str(pk)[10:]}"')
0 commit comments