authenxy
v1.1.0
Published
Open-source library for AES-256-GCM directory encryption with Scrypt implementation.
Downloads
7
Readme
About
Folder encryption open-source software in NodeJS.
Installation
npm install authenxy
Examples
Encrypting
var authenxy = require("authenxy");
var fs = require("fs");
var encrypted = authenxy.encrypt(__dirname, "iliketrains");
fs.writeFileSync("trains.auxy", encrypted);
Decrypting
var authenxy = require("authenxy");
var fs = require("fs");
var encrypted = fs.readFileSync("trains.auxy");
authenxy.decrypt(encrypted, "iliketrains", __dirname + "/trains/");
Methods
.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
.