Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

@swiftyapp/cryptor

1.0.4 • Public • Published

Swifty Cryptor

Basic encrypt and decrypt node module

CircleCI

Install

yarn add @swiftyapp/cryptor

or

npm install @swiftyapp/cryptor

Use

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

Install

npm i @swiftyapp/cryptor

DownloadsWeekly Downloads

4

Version

1.0.4

License

MIT

Unpacked Size

4.83 kB

Total Files

6

Last publish

Collaborators

  • avatar