Package Exports
- xxtea
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 (xxtea) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
xxtea
Pure javascript xxtea encryption algorithm for Node.js.
Install
npm install xxtea
Usage
var xxtea = require('xxtea');
var pass = 'password';
// to encrypt
var encrypted = xxtea.encrypt('data to encrypt', pass);
// to decrypt
var decrypted = xxtea.decrypt(encrypted, pass);
API
xxtea
decrypt(string, password)
- string - required - the data to be decrypted.
- password - required - the password to be used in decryption.
encrypt(string, password)
- string - required - the data to be encrypted.
- password - required - the password to be used in encryption.