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"