mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2026-11-03 03:12:07 +00:00
Handle missing config manager for existing seed setup
This commit is contained in:
1 parent
3ae250bb25
commit
bfdadebd5f
1 file changed
+5
-1
@@ -723,7 +723,11 @@ class PasswordManager:
|
||||
# Initialize EncryptionManager with key and fingerprint_dir
|
||||
password = prompt_for_password()
|
||||
index_key = derive_index_key(parent_seed)
|
||||
iterations = self.config_manager.get_kdf_iterations()
|
||||
iterations = (
|
||||
self.config_manager.get_kdf_iterations()
|
||||
if getattr(self, "config_manager", None)
|
||||
else 100_000
|
||||
)
|
||||
seed_key = derive_key_from_password(password, iterations=iterations)
|
||||
|
||||
self.encryption_manager = EncryptionManager(
|
||||
|
||||
Reference in new issue
Block a user