Skip to content

Commit fb2f017

Browse files
authored
Merge pull request #44 from justmobilize/remove-secrets-usage
Remove secrets usage
2 parents 49ee9b1 + 9aa4c6e commit fb2f017

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

util/decode_priv_key.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
===================================================================
99
1010
Generates RSA keys and decodes them using python-rsa
11-
for use with a CircuitPython secrets file.
11+
for use with a CircuitPython settings.toml file.
1212
1313
This script is designed to run on a computer,
1414
NOT a CircuitPython device.
@@ -36,5 +36,5 @@
3636
print("No file named rsa_private.pem found in directory.")
3737
pk = rsa.PrivateKey.load_pkcs1(private_key)
3838

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

0 commit comments

Comments
 (0)