Package Exports
- suncrypt
- suncrypt/dist/suncrypt.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (suncrypt) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
SunCrypt
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.