by tptacek · 14y ago · 0 comments
A malicious server admin or anybody who pops this server can read people's content just as easily as if it hadn't been encrypted at all.
People obviously enjoy writing these kinds of applications, and more power to them if they're learning from the experience, but I just don't get the attraction. Could someone consider taking the energy they were going to invest in shoehorning 1/8th of PGP into Javascript and just write the Mozilla and Chrome extensions to expose a C implementation of PGP/GPG to Javascript?
Its very true, if someone broke into the server (or I was malicious) they could replace the js with code that after decrypting the page sends it onto somewhere else in plain text. I did consider that situation when putting it together and added the ssl security to help prevent MITM attacks.
I don't really intend this to be a way to share content in a secure manner, as you said there are much better tools for that. It is really an experiment in how you could built a tool where the server doesn't know, because it doesn't want to, what content people have submitted to the site. As you know the url fragment is not sent to the server and so I never see the encryption key.
I am considering moving to the http://code.google.com/p/crypto-js/ version as I'm not sure that it is currently producing keys in the best way.
Would that really help? The same hypothetical malicious server admin could simply alter the JS to not call the code from the extension and the average user would be none the wiser. What am I missing?
Eg, if the end user knows they can safely write a message and hit an encrypt button in a particular window opened by the browser, but not just any old textarea on the webpage.