Show HN: CryptPage, experiment in online publishing using client side encryption
cryptpage.com
cryptpage.com
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.
You can see an example document here: https://cryptpage.com/Cvni#GTP9LXTSI1LV5FKlkO8Dpd
The main difference with this to the one last week is that by building it around a Markdown editor it becomes a platform for publishing nicely formatted content on-line in a free and secure manner.
I am not sure who the market for it is yet and I built it mostly to scratch an itch and learn some new tools. I would love to hear what you think!
Some possible things on the to-do list for it:
- Using the HTML5 file system API and DataURL's to allow people to select an image on their computer to embed into the page. Although I am a little nervous about this and how it could be abused.
- Have an option of a wysiwyg editor for editing the pages.
- Allow optional commenting on pages in a way that is also encrypted.
- Allow people to attach small files again using the HTML5 file system API and DataURL's.
That way, you enable two types of users:
* The "I just don't want the server to have this stored in plaintext" type.
* The "I'll send you the URL now and the key via some secure channel" type.
Also, if you browse incognito, then there shouldn't be a browser history containing the keys.
http://www.mail-archive.com/cryptography@metzdowd.com/msg107...
The URL fragment identifier is what it is. It is not a security feature.
Note – you have a misspelling > TIP: You can link to other _CpyptPage_ documents and as the URL is encrypted with the page it is stored securely.
Fixing it now.