AES-256 encryption utils and handlers
npm install aes-encryptionEncryption and decryption utils and handlers for aes-256-ecb (ECB modes of operation, hex encoding)
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 thenpm install command:
Using npm:
``bash`
$ npm install aes-encryption
Using yarn:
`bash`
$ yarn add aes-encryption
* AES-256 encryption
* AES-256 decryption
------
`js
const AesEncryption = require('aes-encryption')
const aes = new AesEncryption()
aes.setSecretKey('11122233344455566677788822244455555555555555555231231321313aaaff')
// Note: secretKey must be 64 length of only valid HEX characters, 0-9, A, B, C, D, E and F
const encrypted = aes.encrypt('some-plain-text')
const decrypted = aes.decrypt(encrypted)
console.log('encrypted >>>>>>', encrypted)
console.log('decrypted >>>>>>', decrypted)
``
---
#### Created by CODEMONDAY's Developers Team