You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Go to file
Yann Flory 29033f344c Merge branch 'netflux' of github.com:xwiki-labs/cryptpad into netflux 9 years ago
customize.dist Ability to choose which protocol to use (Websocket or WebRTC) with Netflux 9 years ago
storage lvl should not fail on non-existant channels 9 years ago
www Merge branch 'netflux' of github.com:xwiki-labs/cryptpad into netflux 9 years ago
.bowerrc Added cryptsheet to cryptpad suite! 10 years ago
.gitignore ignore customization directory 9 years ago
.jshintignore also ignore webrtc server 9 years ago
.jshintrc jshint ignore external code 9 years ago
.travis.yml Merge branch 'master' of github.com:xwiki-labs/cryptpad 9 years ago
ChainPadSrv.js Add a Chainpad adapter to make Chainpad know the userList 9 years ago
LICENSE #2 added license 10 years ago
NetFluxWebsocketServer.js Replace the chainpad server by the netflux server 9 years ago
WebRTCSrv.js Fix the user list not working with the WebRTC service and causing major issues 9 years ago
and_so_it_begins.png and so it begins 10 years ago
bower.json https is more reliable than git for bower, it seems 9 years ago
config.js.dist Ability to choose which protocol to use (Websocket or WebRTC) with Netflux 9 years ago
cryptofist.png now fix the logo again 10 years ago
npm-debug.log Add a Chainpad adapter to make Chainpad know the userList 9 years ago
package.json Added jshint 9 years ago
readme.md howto maintain your cryptpad instance 9 years ago
server.js Ability to choose which protocol to use (Websocket or WebRTC) with Netflux 9 years ago

readme.md

XWiki labs logo

Unity is Strength - Collaboration is Key

and_so_it_begins.png

CryptPad is the zero knowledge realtime collaborative editor. Encryption carried out in your web browser protects the data from the server, the cloud and the NSA. This project uses the CKEditor Visual Editor and the ChainPad realtime 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 to others who want to participate.

To install:

git clone <this repo>
cd cryptpad
npm install
npm install -g bower ## if necessary
bower install

## copy config.js.dist to config.js 
cp config.js.dist config.js

## modify configuration to use your own mongodb instance
## for example aon the default mongodb port `mongodb://localhost:27017/demo_database`
$EDITOR config.js

node ./server.js

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.

Security

CryptPad is private, not anonymous. Privacy protects your data, anonymity protects you. 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 loads it or a script which plays Rick Astleys's greatest hits. It is acceptable for anyone 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.

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.

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