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 was archived by the owner on Nov 1, 2017. It is now read-only.
One solution to this would be to use sessionStorage for the private keys password, the keypair could then be unlocked between refreshes. The downside of course is the keypair password sitting in plain text.
Another solution would be to store the current hash whenever we are redirected to the unlock page, then once unlocked, try to load the page.
If either of these ideas sound good, let me know and I will code it up.
With that said, localStorage is not suitable for sensitive data. Safari and Chrome use sqlite for storage. For instance, I've ran Swordfish locally and I the private key it generated is stored in plaintext with cat ~/Library/Application\ Support/Google/Chrome/Default/Local\ Storage/http_localhost_3000.localstorage.
There is a same-origin policy for localstorage but XSS and injected extension give up the data easily.
Activity
bkeepers commentedon Aug 15, 2012
With the pki branch merged, this issue changed a bit. Now it always redirects to the unlock screen, and then to the root.
joeyw commentedon Aug 19, 2012
One solution to this would be to use
sessionStoragefor the private keys password, the keypair could then be unlocked between refreshes. The downside of course is the keypair password sitting in plain text.Another solution would be to store the current hash whenever we are redirected to the unlock page, then once unlocked, try to load the page.
If either of these ideas sound good, let me know and I will code it up.
bkeepers commentedon Aug 21, 2012
I'm already a little uneasy about security in the browser. Storing the password or decrypted private key makes me even more nervous.
Would you be willing to do a little research about local storage security? I'd like to know:
joeyw commentedon Aug 22, 2012
Javascript Cryptography Considered Harmful sheds some insight that maybe interesting to this project.
cat ~/Library/Application\ Support/Google/Chrome/Default/Local\ Storage/http_localhost_3000.localstorage.bkeepers commentedon Aug 22, 2012
I opened up #28 to discuss the security aspects more. In the mean time, I would punt on storing the passphrase or decrypted private key.