endec-js

1.0.2 • Public • Published

Installation

You can install this package via npm:

npm install endec-js

Usage

const { encryptData, decryptData } = require('endec-js');

const plainText = 'Hello, world!';
const key = 'yoursecretkey';

// Encrypt message
const encrypted = encryptData(plainText, key);
console.log('Encrypted:', encrypted);

// Decrypt message
const decrypted = decryptData(encrypted, key);
console.log('Decrypted:', decrypted);

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    1
  • 1.0.1
    0
  • 1.0.0
    1

Package Sidebar

Install

npm i endec-js

Weekly Downloads

2

Version

1.0.2

License

MIT

Unpacked Size

2.35 kB

Total Files

3

Last publish

Collaborators

  • boskomp