Negatively Proportional Model
Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

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)

Install

npm i secret-maker

DownloadsWeekly Downloads

3

Version

1.0.3

License

MIT

Unpacked Size

5.27 kB

Total Files

8

Last publish

Collaborators

  • avatar