Skip to content

arsalan171/aes-enc-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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";

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

About

AES encryption with crypto-JS. Stored secret key in and you in entire application

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published