mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-22 22:49:45 +01:00
feat: require password for encrypted backups
This commit is contained in:
@@ -49,6 +49,10 @@ export default class Storage {
|
||||
return this.storage.getCryptoKey(name);
|
||||
}
|
||||
|
||||
generateCryptoKey(password, salt) {
|
||||
return this.storage.generateCryptoKey(password, salt);
|
||||
}
|
||||
|
||||
async generateRandomKey() {
|
||||
const passwordBytes = randomBytes(124);
|
||||
const password = passwordBytes.toString("base64");
|
||||
|
||||
Reference in New Issue
Block a user