ciphercore
ciphercore copied to clipboard
(Experimental) hypercore compatible wrapper that provides transparent content encryption
ciphercore
(Work in progress..) if you just want to encrypt content and don't care about the API design that is currently blocked, then take a look at crypto-encoder
ciphercore is a proxy factory that extends hypercore with the following features:
- Transparently encrypts your content for cold-storage
- Introduces a new peer state (blind replicator)
- Should work as a drop-in replacement for existing hypercore dependents
var ciphercore = require('ciphercore')
var feed = ciphercore('./my-first-dataset', {valueEncoding: 'utf-8'})
feed.append('hello')
// extended functionality
feed.blindKey // => Replication key
feed.key // => Replication key + Decryption key
feed.internal // => the internal hypercore/proxy-target
Refer to the test for more info.
TODO:
- Test with compound-cores like hyperdrive && hyperdb
- Introduce dynamic coretype support for multifeed.