Skip to content

Instantly share code, notes, and snippets.


  • Netherlands
Block or report user

Report or block GoNode5

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
GoNode5 / gist:769af0d0fd2309fff7ab
Last active Feb 14, 2016
nodejs encrypt files
View gist:769af0d0fd2309fff7ab
var fs = require('fs');
var crypto = require('crypto');
var password = new Buffer('{cCQ3d^b&5/Wfp}MV%@Dhy;N)qvTu@?!h:eXL#;A?xS=wZb[w(Z>H^FyK%/P*3aB=_(~A%]f[)LjMVuH(s!Kw%fJwL');
var items=['file1','file2','file3']
for (var i=0;i<items.length;i++) {
var aes = crypto.createCipher('aes-256-ctr', password);
You can’t perform that action at this time.