Closed yaseenkadir closed 5 years ago
STR
/journals
Decrypting
When a user logs out, we don't clear the encrypter. When a user logs in again the encrypter is still set with the previous users keys.
Now we need to consider what happens with the keys when we log out.
Is it safe for us to just set the encrypter to be null? How long until it's garbage collected? Is it an issue if garbage collection takes some time?
Should we just reload and clear the page instead?
Lets just reload the page. We could definitely clear the encrypter on logout but I'm nervous that this vulnerability will come up another way.
STR
/journals
instead of entering the passphraseDecrypting
foreverWhen a user logs out, we don't clear the encrypter. When a user logs in again the encrypter is still set with the previous users keys.
Now we need to consider what happens with the keys when we log out.
Is it safe for us to just set the encrypter to be null? How long until it's garbage collected? Is it an issue if garbage collection takes some time?
Should we just reload and clear the page instead?