Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@swiftyapp/cryptor

swiftyapp38MIT1.1.1

Basic encrypt and decrypt node module

cryptr, crypter, encrypt, decrypt, encryption, decryption, crypto, cipher, aes-256, aes256, aes-256-ctr, hashr

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