Folder encryption open-source software in NodeJS.
npm install authenxy
var authenxy = require("authenxy");
var fs = require("fs");
var encrypted = authenxy.encrypt(__dirname, "iliketrains");
fs.writeFileSync("trains.auxy", encrypted);
var authenxy = require("authenxy");
var fs = require("fs");
var encrypted = fs.readFileSync("trains.auxy");
authenxy.decrypt(encrypted, "iliketrains", __dirname + "/trains/");
.encrypt(<folder directory>, <password>)
Returns: Buffer
of encrypted data.
.decrypt(<buffer>, <password>, <output folder directory>)
Expands the encrypted buffer into selected directory. If the directory already exists or an incorrect password is entered, an error will be thrown.
Returns: null
.