x-encryptr

1.0.0 • Public • Published

X-Collect

A helper encryption package to quickly encrypt, decrypt, and generate keys on the fly.

Installation

Package Manager

NPN

Install x-encrypt using NPM

npm install x-encrypt

Include x-encrypt in your application

const XEncrypt = require('./index');
const { encrypt, decrypt, keygen } = XEncrypt;

let input = 'Hello, World!';
let key = keygen();
let encrypted = encrypt(key, input);
let decrypted = decrypt(key, encrypted);

Usage

encrypt()

let encrypted = encrypt(key, input);

decrypt()

let decrypted = decrypt(key, encryptedText);

keygen()

let key = keygen();

Package Sidebar

Install

npm i x-encryptr

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

3.24 kB

Total Files

4

Last publish

Collaborators

  • rvancuren