Package Exports
- @swiftyapp/cryptor
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 (@swiftyapp/cryptor) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Swifty Cryptor
Basic encrypt and decrypt node module
Install
yarn add @swiftyapp/cryptoror
npm install @swiftyapp/cryptorUse
const Cryptor = require("@swiftyapp/cryptor");
const cryptor = new Cryptor("secretpassword");
const encrypted = cryptor.encrypt("some sensitive data");
console.log(encrypted); // 79e103b37586b83002e92cc9...
const decrypted = cryptor.decrypt(encrypted);
console.log(decrypted); // some sensitive data