1.0.1 • Published 5 years ago

private-pipe v1.0.1

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

private-pipe

Build Status

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

License

ISC