3 Commits

Author SHA1 Message Date
cf0288b519 Merge pull request 'in common_tools CryptUtils.decrypt() method' (#1) from 4-06-2025 into main
Reviewed-on: #1
2025-06-08 00:52:27 +02:00
ffb9a5ba5f in common_tools CryptUtils.decrypt() method
remove check file .dat is exist in path
2025-06-08 00:50:21 +02:00
32e375b2e4 version update 2025-06-04 21:50:04 +02:00
3 changed files with 25 additions and 22 deletions

View File

@ -5,6 +5,11 @@ Changelog for shared_libs
- add Info Window for user in delete logfile
bevore delete logfile.
### Added
03-06-2025
- in common_tools CryptUtils.decrypt() method
remove check file .dat is exist in path.
### Added
03-06-2025

View File

@ -21,31 +21,29 @@ class CryptoUtil:
"""
@staticmethod
def decrypt(user, path) -> None:
def decrypt(user) -> None:
"""
Starts SSL dencrypt
"""
if len([file.stem for file in path.glob("*.dat")]) == 0:
pass
process: CompletedProcess[str] = run(
["pkexec", "/usr/local/bin/ssl_decrypt.py", "--user", user],
capture_output=True,
text=True,
check=False,
)
# Output from Openssl Error
if process.stderr:
logging.error(process.stderr, exc_info=True)
if process.returncode == 0:
logging.info("Files successfully decrypted...", exc_info=True)
else:
process: CompletedProcess[str] = run(
["pkexec", "/usr/local/bin/ssl_decrypt.py", "--user", user],
capture_output=True,
text=True,
check=False,
logging.error(
f"Error process decrypt: Code {process.returncode}", exc_info=True
)
# Output from Openssl Error
if process.stderr:
logging.error(process.stderr, exc_info=True)
if process.returncode == 0:
logging.info("Files successfully decrypted...", exc_info=True)
else:
logging.error(
f"Error process decrypt: Code {process.returncode}", exc_info=True
)
@staticmethod
def encrypt(user) -> None:
"""

View File

@ -51,9 +51,9 @@ class AppConfig:
# Updates
# 1 = 1. Year, 09 = Month of the Year, 2924 = Day and Year of the Year
VERSION: str = "v. 1.06.3125"
UPDATE_URL: str = "https://git.ilunix.de/api/v1/repos/punix/Wire-Py/releases"
DOWNLOAD_URL: str = "https://git.ilunix.de/punix/Wire-Py/archive"
VERSION: str = "v. 1.06.0325"
UPDATE_URL: str = "https://git.ilunix.de/api/v1/repos/punix/shared_libs/releases"
DOWNLOAD_URL: str = "https://git.ilunix.de/punix/shared_libs/archive"
# UI configuration
UI_CONFIG: Dict[str, Any] = {