From 2b7d14eb5b30ec52b176dfaeaa16f678f1a9aac1 Mon Sep 17 00:00:00 2001 From: Matt Date: Tue, 24 Mar 2026 15:47:47 -0700 Subject: [PATCH] update hash file handler --- api/app.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/app.py b/api/app.py index 5ea3151..b5449b0 100644 --- a/api/app.py +++ b/api/app.py @@ -14,7 +14,9 @@ import json, time, hashlib # System Variables words = [] simple_words = [] -HASH_FILE = "/opt/pwdgen/hash_record.txt" + +HASH_DIR = Path("/opt/pwdgen") +HASH_FILE = HASH_DIR / "hash_record.txt" password_hashes =set() SPECIAL_SET = "!@#$%^&*(),.<>?~`;:|][}{=-+_" WORDS_FILE = "dict.yaml"