aes-encryption-unlimited
Unlimited String AES encryption and decryption with key
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
Table of Contents
About Project
This is fully secure AES Encryption function. This is specially you can use unlimited length key and create unlimited length of string value. You can encrypt Json array also. It's have default key value and you can change own key value.
Features
- AES-unlimited encryption without key
- AES-unlimited decryption without key
- AES-unlimited encryption with key
- AES-unlimited decryption with key
Built With
- 100% JavaScript
Installation
This is a Node.js module available through the npm registry.
Before installing, download and install Node.js. Node.js 0.10 or higher is required.
Installation is done using the
npm install
command:
Using npm:
$ npm i aes-encryption-unlimited
Using yarn:
$ yarn add aes-encryption-unlimited
Usage
import AesEncryption from "aes-encryption-unlimited";
//WithoutKey
const encrypted = AesEncryption.encrypt("abc")}
const decrypted = AesEncryption.decrypt("U2FsdGVkX1+FGzP1ArvVkbieWzCb7KVNDFbSM079+N4=")
console.log('encrypted >>>>>>', encrypted)
console.log('decrypted >>>>>>', decrypted)
//WithKey
// Note: secretKey can be unlimited letters
const encrypted = AesEncryption.encrypt("abc","passKey")}
const decrypted = AesEncryption.decrypt("U2FsdGVkX1+y7iF88r8Oohony7VDFCzmvmP3t9cns7w=","passKey")
console.log('encrypted >>>>>>', encrypted)
console.log('decrypted >>>>>>', decrypted)
//inner html
<p>{AesEncryption.encrypt("abc")}</p>
<p>{AesEncryption.decrypt("U2FsdGVkX1+FGzP1ArvVkbieWzCb7KVNDFbSM079+N4=")}</p>
Browser Support
Native support
- Chrome
- Safari
- FireFox
License
Developed by
Karunaaharan Bavaram
Copyright
Copyright (c) 2022 Karunaaharan Bavaram
, contributors. Released under the MIT, GPL licenses