tests: use AES-GCM key generation

This commit is contained in:
thePR0M3TH3AN
2025-07-12 20:32:04 -04:00
parent f4a169ca80
commit f7c2017f1c
9 changed files with 31 additions and 20 deletions

View File

@@ -10,7 +10,8 @@ import uuid
import pytest
from cryptography.fernet import Fernet
import base64
import os
sys.path.append(str(Path(__file__).resolve().parents[1]))
@@ -32,7 +33,7 @@ def test_nostr_index_size_limits(pytestconfig: pytest.Config):
)
results = []
with TemporaryDirectory() as tmpdir:
key = Fernet.generate_key()
key = base64.urlsafe_b64encode(os.urandom(32))
enc_mgr = EncryptionManager(key, Path(tmpdir))
with patch.object(enc_mgr, "decrypt_parent_seed", return_value=seed):
client = NostrClient(