From 9aa4c6e12018d56e83a5fbdc7816b3f79edb2aa2 Mon Sep 17 00:00:00 2001 From: Justin Myers Date: Thu, 27 Feb 2025 15:43:18 -0800 Subject: [PATCH] Remove secrets usage --- util/decode_priv_key.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/util/decode_priv_key.py b/util/decode_priv_key.py index c673c42..12f2f99 100644 --- a/util/decode_priv_key.py +++ b/util/decode_priv_key.py @@ -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. @@ -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:]}"')