Fix legacy decryption iterations

This commit is contained in:
thePR0M3TH3AN
2025-08-03 17:53:42 -04:00
parent 2f95944318
commit 6fa9f0839e
3 changed files with 23 additions and 15 deletions

View File

@@ -138,7 +138,9 @@ class EncryptionManager:
password = prompt_existing_password(
"Enter your master password for legacy decryption: "
)
legacy_key = _derive_legacy_key_from_password(password)
legacy_key = _derive_legacy_key_from_password(
password, iterations=50_000
)
legacy_mgr = EncryptionManager(legacy_key, self.fingerprint_dir)
result = legacy_mgr.decrypt_data(encrypted_data)
logger.warning(