authenxy

1.1.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i authenxy

Weekly Downloads

0

Version

1.1.0

License

MIT

Unpacked Size

42.9 kB

Total Files

11

Last publish

Collaborators

  • chocoparrot