JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q57120F
  • License MIT

Basic encrypt and decrypt node module

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

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