You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.
Hi, I'm trying to add forgot password function in this repo to set a new password.
/**
* Forgot password
* @param newPassword
* @throws error, if newPassword is incorrect
*/
forgotPassword(newPassword) {
if (newPassword != "") {
let enc = new TextEncoder("utf-8");
this.chaChaPassword = new ChaCha20(this.keyPassword, this.keyPasswordNonce).encrypt(enc.encode(newPassword));
this.useDefaultPassword = false;
}
else throw new Error("Incorrect old password");
}
I tried this but it is not working can anyone help me with this.
The text was updated successfully, but these errors were encountered:
Basically the secrets are differently encrypted depending on the Storage. On hard drives they are encrypted using OpenPGP symmetric encryption and in Memory via ChaCha20.
If you only have a the file that is placed on the hard Drive, the only possibility to recover it is via cracking. Depending on the password strength this can take years.
Hi, I'm trying to add forgot password function in this repo to set a new password.
/**
* Forgot password
* @param newPassword
* @throws error, if newPassword is incorrect
*/
forgotPassword(newPassword) {
if (newPassword != "") {
let enc = new TextEncoder("utf-8");
this.chaChaPassword = new ChaCha20(this.keyPassword, this.keyPasswordNonce).encrypt(enc.encode(newPassword));
this.useDefaultPassword = false;
}
else throw new Error("Incorrect old password");
}
I tried this but it is not working can anyone help me with this.
The text was updated successfully, but these errors were encountered: