[mob] Minor refactor

This commit is contained in:
ashilkn
2024-07-23 17:17:04 +05:30
parent 47203af4ff
commit 875b079850
2 changed files with 4 additions and 10 deletions

View File

@@ -131,11 +131,8 @@ class LockScreenSettings {
sodium,
);
final String saltPassword = base64Encode(salt);
final String hashPassword = base64Encode(hash);
await _secureStorage.write(key: saltKey, value: saltPassword);
await _secureStorage.write(key: password, value: hashPassword);
await _secureStorage.write(key: saltKey, value: base64Encode(salt));
await _secureStorage.write(key: password, value: base64Encode(hash));
await _secureStorage.delete(key: pin);
return;

View File

@@ -103,11 +103,8 @@ class LockScreenSettings {
"memLimit": Sodium.cryptoPwhashMemlimitInteractive,
});
final String saltPassword = base64Encode(salt);
final String hashPassword = base64Encode(hash);
await _secureStorage.write(key: saltKey, value: saltPassword);
await _secureStorage.write(key: password, value: hashPassword);
await _secureStorage.write(key: saltKey, value: base64Encode(salt));
await _secureStorage.write(key: password, value: base64Encode(hash));
await _secureStorage.delete(key: pin);
return;