Plugin to encrypt a PouchDB/CouchDB database.
Node.js
npm install pouchdb-triplesec
var pouchdb = require('pouchdb');
pouchdb.plugin(require('pouchdb-triplesec'));
Browser
<script src="pouchdb.js"></script>
<script src="pouchdb.pouchdb-triplesec.min.js"></script>
var db = new PouchDB('my_database');
db.enableCrypto(password);
// Docs are transparently encrypted/decrypted.