private-pipe
v1.0.1
Published
Simple encryption using UNIX pipes
Downloads
12
Readme
private-pipe
Simple encryption using UNIX pipes
:warning: The encryption used is unauthenticated, which means that this module will not be able to tell you if an adversary changed parts of the encrypted stream. However, when you open your file you might soon realise so, if you are unable to parse it.
Usage
var privatePipe = require('private-pipe')
process.stdin.pipe(privatePipe(Buffer.from('my password'))).pipe(process.stdout)
This module also comes with a handy CLI, that you can use with eg. Airpaste.
On sending machine:
cat my-private-file | private-pipe "some shared password" | airpaste
On receiving machine:
airpaste | private-pipe "some shared password" > my-private-file
API
var stream = privatePipe(passwordBuf)
Returns a Transform
stream, taking Buffer
password
Install
npm install private-pipe