private-pipe

1.0.1 • Public • Published

private-pipe

Build Status

Simple encryption using UNIX pipes

⚠️ 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

/private-pipe/

    Package Sidebar

    Install

    npm i private-pipe

    Weekly Downloads

    0

    Version

    1.0.1

    License

    ISC

    Unpacked Size

    7.52 kB

    Total Files

    7

    Last publish

    Collaborators

    • emilbayes