1
0
mirror of https://github.com/Tygs/0bin.git synced 2023-08-10 21:13:00 +03:00
0bin/README.rst

61 lines
3.0 KiB
ReStructuredText
Raw Normal View History

2012-04-24 13:34:08 +04:00
0bin
====
2012-05-02 13:37:28 +04:00
Have a try here: <a href="http://0bin.net">0bin.net</a>
2012-05-01 18:18:32 +04:00
0bin is a client side encrypted pastebin that can run without a database.
2012-04-24 22:15:38 +04:00
2012-05-01 21:35:51 +04:00
It allows anybody to host a pastebin while welcoming any type of content to be pasted in it. The idea is that one can (probably...) not be legally entitled to <a href="http://www.zdnet.com/blog/security/pastebin-to-hunt-for-hacker-pastes-anonymous-cries-censorship/11336">moderate the pastebin content</a> as he/she has no way to decrypt it.
2012-04-30 16:33:27 +04:00
2012-05-07 10:29:20 +04:00
It's an Python implementation of the <a href="https://github.com/sebsauvage/ZeroBin/">zerobin project</a>. It's easy to install even if you know nothing about Python.
2012-04-30 16:33:27 +04:00
How it works
=============
When creating the paste:
- the browser generate a random key;
- the pasted content is encrypted with this key using AES256;
- the encrypted pasted content is sent to the server;
- the browser receives the paste URL and add the key in the URL hash (#).
2012-04-30 16:33:27 +04:00
When reading the paste:
- the browser makes the GET request to the paste URL;
- because the key is in the hash, the key is not part of the request;
- browser gets the encrypted content et decrypt it using the key;
- the pasted decrypted content is displayed and code is colored.
2012-04-30 16:33:27 +04:00
Key points:
- because the key is in the hash, the key is never sent to the server;
- therefor it won't appear in the server logs;
- all operations, including code coloration, must happens on the client;
- the server is no more than a fancy recipient for the encrypted data.
2012-04-30 16:33:27 +04:00
Technologies used
==================
- <a href="https://en.wikipedia.org/wiki/Python_(programming_language)">Python</a>
- <a href="http://bottlepy.org/">The Bottle Python Web microframework</a>
- <a href="http://crypto.stanford.edu/sjcl/">SJCL</a> (js crypto tools)
- <a href="http://jquery.com/">jQuery</a>
- <a href="http://twitter.github.com/bootstrap/">Bootstrap</a>, the twitter css framework
- <a href="https://github.com/sametmax/VizHash.js">VizHash.js</a> to create visual hashes from pastes
2012-04-30 16:33:27 +04:00
- Cherrypy (server only)
Known issues
============
2012-05-16 11:15:14 +04:00
- 0bin uses several HTML5/CSS3 features that are not widely supported. In that case we handle the degradation as gracefully as we can.
2012-04-30 16:33:27 +04:00
- The "copy to clipboard" feature is buggy under linux. It's flash, so we won't fix it. Better wait for the HTML5 clipboard API to be implemented in major browsers.
- The pasted content size limit check is not accurate. It's just a safety net, so we thinks it's ok.
- Some url shorteners and other services storing URLs break the encryption key. We will sanitize the URL as much as we can, but there is a limit to what we can do.
2012-04-24 22:15:38 +04:00
What does 0bin not implement?
=================================
2012-04-30 16:33:27 +04:00
* Request throttling. It would be inefficient to do it at the app level, and web servers have robust implementations.
* Hash collision prevention: the ratio "probability it happens/consequence seriousness" <a href="http://stackoverflow.com/questions/201705/how-many-random-elements-before-md5-produces-collisions">is not worth it</a>
2012-05-01 21:35:51 +04:00
* Comments: for now. It's on the todo list.