secret-maker

1.0.3 • Public • Published

secret-maker

Encrypt and decrypt text by AES 256

Install

npm i secret-maker -S

Sample

import Crypto from 'secret-maker'
or 
const Crypto = require("secret-maker").default

const privateKey = 'testtest'
const crypto = new Crypto(privateKey)

const rawText = '1234567890';

const encryptedHash = crypto.encrypt(rawText);
const decryptedText = crypto.decrypt(encryptedHash);

console.log(rawText == decryptedText)

Package Sidebar

Install

npm i secret-maker

Weekly Downloads

1

Version

1.0.3

License

MIT

Unpacked Size

5.27 kB

Total Files

8

Last publish

Collaborators

  • yahoohung