suncrypt
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

SunCrypt

npm version License: MIT GitHub issues

SunCrypt is a NodeJS library that provides Sundanese Unicode Cryptography Algorithm using AES-256 CBC Encryption.

Installation

npm install suncrypt

Usage

const Suncrypt = require('suncrypt');

const suncrypt = new Suncrypt();
const key = suncrypt.generateKey();

const encrypted = suncrypt.encrypt(JSON.stringify({message: 'SunCrypt-CBC'}), key);
// Encrypted message will be different each time
console.log(encrypted);

const decrypted = suncrypt.decrypt(encrypted, key);
console.log(decrypted);

Example

Contributors

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Package Sidebar

Install

npm i suncrypt

Weekly Downloads

5

Version

1.0.3

License

MIT

Unpacked Size

8.18 kB

Total Files

5

Last publish

Collaborators

  • mrdhanz