2015-07-02 20:18:52 +08:00
[![XWiki labs logo ](https://raw.githubusercontent.com/xwiki-labs/xwiki-labs-logo/master/projects/xwikilabs/xlabs-project.png "XWiki labs" )](https://labs.xwiki.com/xwiki/bin/view/Main/WebHome)
2014-11-06 20:10:16 +08:00
< p align = "center" >
< img src = "https://github.com/cjdelisle/cryptpad/raw/master/cryptofist.png" width = "60%" >
< / p >
2014-10-31 23:42:58 +08:00
Unity is Strength - Collaboration is Key
2014-11-06 19:55:43 +08:00
2014-11-04 03:43:43 +08:00
2014-10-31 23:42:58 +08:00
![and_so_it_begins.png ](https://github.com/cjdelisle/cryptpad/raw/master/and_so_it_begins.png "We are the 99%" )
2014-11-01 00:05:09 +08:00
CryptPad is the **zero knowledge** realtime collaborative editor.
2014-10-31 23:42:58 +08:00
Encryption carried out in your web browser protects the data from the server, the cloud
2014-10-31 23:44:26 +08:00
and the NSA. This project uses the [CKEditor] Visual Editor and the [ChainPad] realtime
2014-10-31 23:42:58 +08:00
engine. The secret key is stored in the URL [fragment identifier] which is never sent to
the server but is available to javascript so by sharing the URL, you give authorization
2014-10-31 23:44:26 +08:00
to others who want to participate.
2014-10-31 23:42:58 +08:00
2014-10-31 23:44:26 +08:00
To install:
2014-10-31 23:42:58 +08:00
2014-10-31 23:44:26 +08:00
git clone < this repo >
2016-01-15 03:57:33 +08:00
cd cryptpad
2014-10-31 23:44:26 +08:00
npm install
npm install -g bower ## if necessary
bower install
2016-03-04 18:28:27 +08:00
2016-01-15 03:57:33 +08:00
## copy config.js.dist to config.js
cp config.js.dist config.js
2016-03-04 18:28:27 +08:00
2016-01-15 03:57:33 +08:00
## modify configuration to use your own mongodb instance
## for example aon the default mongodb port `mongodb://localhost:27017/demo_database`
$EDITOR config.js
2016-03-04 18:28:27 +08:00
2014-10-31 23:44:26 +08:00
node ./server.js
2014-10-31 23:42:58 +08:00
2016-03-04 19:14:40 +08:00
## Maintenance
To get access to the most recent codebase:
```
cd /your/cryptpad/instance/location;
git pull
```
To update dependencies:
```
# clientside dependencies
bower update;
# serverside dependencies
npm update;
```
To reset your instance of Cryptpad and remove all the data that is being stored:
If you are using the leveldb adaptor, this is as simple as deleting the folder which contains your leveldb datastore:
```
# change into your cryptpade directory
cd /your/cryptpad/instance/location;
# delete the datastore
rm -rf ./cryptpad.db
```
If you are using the mongodb adaptor, [drop the relevant collection ](https://docs.mongodb.org/manual/reference/method/db.collection.drop/#db.collection.drop ).
2014-10-31 23:42:58 +08:00
2014-11-04 03:43:43 +08:00
## Security
2016-01-29 18:53:11 +08:00
CryptPad is *private* , not *anonymous* . Privacy protects your data, anonymity protects you.
2014-11-04 03:43:43 +08:00
As such, it is possible for a collaborator on the pad to include some silly/ugly/nasty things
in a CryptPad such as an image which reveals your IP address when your browser automatically
2016-01-29 18:53:11 +08:00
loads it or a script which plays Rick Astleys's greatest hits. It is acceptable for anyone
2014-11-04 03:43:43 +08:00
who does not have the key to be able to change anything in the pad or add anything, even the
server.
The server does have a certain power, it can send you evil javascript which does the wrong
thing (leaks the key or the data back to the server or to someone else). This is however an
[active attack] which makes it detectable. The NSA really hates doing these because they might
get caught and laughed at and humiliated in front of the whole world (again). If you're making
the NSA mad enough for them to use an active attack against you, Great Success Highfive, now take
the battery out of your computer before it spawns Agent Smith.
Still there are other low-lives in the world so using CryptPad over HTTPS is probably a good idea.
2014-12-03 08:51:43 +08:00
## Contributing
We love Open Source and we love contribution. It is our intent to keep this project available
under the AGPL license forever but in order to finance more development on this and other FOSS
projects, we also wish to sell other licenses to this software. Before making a pull request,
please read and
[sign the Commons Management Agreement ](https://www.clahub.com/agreements/cjdelisle/cryptpad ).
2014-11-04 03:43:43 +08:00
2014-12-05 18:01:43 +08:00
### License
This software is and will always be available under the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the License, or (at your option)
any later version. If you wish to use this technology in a proprietary product, please contact
sales@xwiki.com
2014-11-04 03:43:43 +08:00
2015-01-31 01:12:20 +08:00
* Icons thanks to http://www.famfamfam.com/ licensed [Creative Commons Attribution 2.5 License]
2014-11-04 03:43:43 +08:00
2014-10-31 23:44:26 +08:00
[ChainPad]: https://github.com/xwiki-contrib/chainpad
[CKEditor]: http://ckeditor.com/
[fragment identifier]: https://en.wikipedia.org/wiki/Fragment_identifier
2014-11-04 03:43:43 +08:00
[active attack]: https://en.wikipedia.org/wiki/Attack_(computing)#Types_of_attacks
2015-01-31 01:12:20 +08:00
[Creative Commons Attribution 2.5 License]: http://creativecommons.org/licenses/by/2.5/