Skip to content

Instantly share code, notes, and snippets.

View Restry's full-sized avatar
🙉
Overtime

leway Restry

🙉
Overtime
View GitHub Profile
@Restry
Restry / crypto-stream.js
Created August 17, 2018 10:02 — forked from chris-rock/crypto-stream.js
Encrypt and decrypt streams
// Part of https://github.com/chris-rock/node-crypto-examples
// Nodejs encryption of buffers
var crypto = require('crypto'),
algorithm = 'aes-256-ctr',
password = 'd6F3Efeq';
var fs = require('fs');
var zlib = require('zlib');