tests: use AES-GCM key generation

This commit is contained in:
thePR0M3TH3AN committed 2025-07-12 20:32:04 -04:00
1 parent f4a169ca80
commit f7c2017f1c
9 files changed
+31 -20

No files matched your search

+3 -2
View File
@@ -3,7 +3,8 @@ import sys
from pathlib import Path
from tempfile import TemporaryDirectory
from cryptography.fernet import Fernet
import os
import base64
sys.path.append(str(Path(__file__).resolve().parents[1]))
@@ -14,7 +15,7 @@ from utils.checksum import verify_and_update_checksum
def test_encryption_checksum_workflow():
with TemporaryDirectory() as tmpdir:
tmp_path = Path(tmpdir)
key = Fernet.generate_key()
key = base64.urlsafe_b64encode(os.urandom(32))
manager = EncryptionManager(key, tmp_path)
data = {"value": 1}