开发者社区> 镜像站> NPM> private-pipe
private-pipe
Simple encryption using UNIX pipes
Last updated 2 years ago by emilbayes .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install private-pipe 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.1                                ...           latest (2 years ago)

2 Versions

  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 1
Dependencies (3)
Dev Dependencies (2)
Dependents (0)
None