Show HN: Encrypt text into url using Javascript on browser
boxuptext.com
boxuptext.com
I know there's a prevalent view against doing crypto stuff in Javascript so extra precautions are taken to minimize the security risks.
- All web content (html, css, js, images) come from the same server.
- No download from any 3rd party websites or CDN.
- Use SSL certificate for all content to prevent code injection along the way.
- Encryption and decryption are done on the browser.
- Nothing is submitted to the server and no input shown to avoid XSS.
- Url fragment is used for encrypted data which stays on browser.
- Server doesn't do any encryption work besides serving the web content.
- The web pages can be downloaded and run off from the local file system.
- Have as few dependencies as possible, just: SJCL, Bootstrap (css), and html5.js.
- Keep things simple for verification.
Please review the app and code to see if there are any security concerns. Thanks!
Thanks for the feedback.
The reason I ask is that something like that could be used to build a file sharing service where the content is only known to those people with the correct links (with the # anchor information).
This would be super useful for distributing private data.
Also, it would help to temporarily highlight the exact linked question on the page when you visit the link, so we can easily spot it among the other questions on that part of the page. I'm thinking of something like Stack Overflow's anchor link highlighting, seen on links like http://stackoverflow.com/q/10720420/578288#comment13941533_1.... But this is not that important, and perhaps one day browsers will do this highlighting for us - I think Opera already does.