Skip to content

Chokyotager/Authenxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


banner


Vulnerabilities

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

  1. .encrypt(<folder directory>, <password>)

Returns: Buffer of encrypted data.

  1. .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.

Algorithm

Authenxy algorithm

About

Folder encryption open-source software in NodeJS

Resources

License

Stars

Watchers

Forks

Packages

No packages published