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
The current implementation of password and private key handling stores decrypted private keys in localStorage, which poses a significant security risk:
Keeping the unencrypted private key material in memory only is indeed a good idea. However take in consideration that a new private key management scheme will have to be introduced in the upcoming releases and the current one will be phased out. So I won't recommend putting too much time in modifying the current scheme for that.
The current implementation of password and private key handling stores decrypted private keys in
localStorage
, which poses a significant security risk:auth.ts:
Here are suggested fixes:
Avoid storing decrypted private keys:
localStorage
.Use Web Crypto API for Encryption:
Implement a TTL (Time-to-Live):
localStorage
.The text was updated successfully, but these errors were encountered: