user: use fixed salt to derive key for encryption

This commit is contained in:
thecodrr
2020-04-13 15:36:51 +05:00
parent ffa1e3b15c
commit a462a02f56
2 changed files with 5 additions and 5 deletions

View File

@@ -23,7 +23,7 @@ export default class Storage {
decrypt(password, cipher) {
return this.storage.decrypt(password, cipher);
}
deriveKey(password) {
return this.storage.deriveKey(password, null, true);
deriveKey(password, salt) {
return this.storage.deriveKey(password, salt, true);
}
}