From 39846a95f26ba01a8b3cdaf7bbfa294b9cf46a31 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 24 Mar 2026 21:39:49 +0000 Subject: [PATCH 1/2] Fix pyrage passphrase API for v1.3.0 pyrage 1.3.0 removed the Recipient/Identity class pattern in favour of pyrage.passphrase.encrypt(plaintext, passphrase) and pyrage.passphrase.decrypt(ciphertext, passphrase) top-level functions. Update _encrypt/_decrypt in config.py accordingly. https://claude.ai/code/session_01KjaNo9RXevw6x1DjJD8mj6 --- modules/config.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/config.py b/modules/config.py index 1f11140..3edd308 100644 --- a/modules/config.py +++ b/modules/config.py @@ -48,13 +48,11 @@ class ConfigError(Exception): # --------------------------------------------------------------------------- def _encrypt(plaintext: str, passphrase: str) -> bytes: - identity = pyrage.passphrase.Recipient(passphrase) - return pyrage.encrypt(plaintext.encode(), [identity]) + return pyrage.passphrase.encrypt(plaintext.encode(), passphrase) def _decrypt(ciphertext: bytes, passphrase: str) -> str: - identity = pyrage.passphrase.Identity(passphrase) - return pyrage.decrypt(ciphertext, [identity]).decode() + return pyrage.passphrase.decrypt(ciphertext, passphrase).decode() # --------------------------------------------------------------------------- From d81a3d39745f862e295b155189d24a5abda71ce6 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 24 Mar 2026 21:40:27 +0000 Subject: [PATCH 2/2] Add .gitignore for Python artifacts and runtime data Excludes __pycache__, compiled Python files, virtual environments, the data/ directory (runtime-generated), and build artifacts. https://claude.ai/code/session_01KjaNo9RXevw6x1DjJD8mj6 --- .gitignore | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..921c204 --- /dev/null +++ b/.gitignore @@ -0,0 +1,19 @@ +# Python +__pycache__/ +*.py[cod] +*.pyo +*.pyd +.Python + +# Virtual environments +.venv/ +venv/ +env/ + +# Data directory (runtime files, not source) +data/ + +# Distribution / packaging +*.egg-info/ +dist/ +build/