RustImplementation #23

Merged
mysticmomba merged 118 commits from RustImplementation into master 2025-11-04 18:13:24 -05:00
Showing only changes of commit efe14760b6 - Show all commits
+15
View File
@@ -18,6 +18,7 @@ import logging
import os
import platform
import re
import sys
from getpass import getpass
import keyring
@@ -79,6 +80,20 @@ def retrieve_api_key(service: str, username: str, password: str) -> str:
aesgcm = AESGCM(key)
pt = aesgcm.decrypt(nonce, ct, associated_data=None)
return pt.decode()
logger.debug(f"API key for service '{service}' and user '{username}' stored successfully.")
print("\n✅ API key stored securely.")
print("️ The program will now exit. Press Enter to continue...")
try:
_ = input()
except Exception:
pass
_ = None
sys.exit(0)
def api_key_exists(service: str, username: str) -> bool: