aes-enc-js

1.4.0 • Public • Published

aes-enc-js

NPM

Installation

npm install --save aes-enc-js

Also available to install globally:

npm install --global aes-enc-js

Usage

To include aes-enc-js on your website or npm application, use any of the following methods.

ES5

const { encrypt, decrypt } =  require("aes-enc-js");

ES6

import { encrypt, decrypt } =  "aes-enc-js";
const T = "This text is going to encrypt.";
const E = encrypt(T);
const D = decrypt(E);
console.log("ORIGINAL TEXT IS "+ T);
console.log("ENCRPYTED TEXT IS " + E);
console.log("DECRPYTED TEXT IS " + D);

Change secret key from index.js file.

const K = "4951882490015028";

License

Apache-2.0. Copyright (c) Arsalan Akhtar, Inc.

/aes-enc-js/

    Package Sidebar

    Install

    npm i aes-enc-js

    Weekly Downloads

    3

    Version

    1.4.0

    License

    ISC

    Unpacked Size

    3.85 kB

    Total Files

    4

    Last publish

    Collaborators

    • arsalanakhtar11