An open API service indexing awesome lists of open source software.

https://github.com/swiftyapp/cryptor

🔐 Basic encrypt and decrypt node module
https://github.com/swiftyapp/cryptor

crypto cryptor decryption encryption password password-hash

Last synced: about 1 year ago
JSON representation

🔐 Basic encrypt and decrypt node module

Awesome Lists containing this project

README

          

# Swifty Cryptor

Basic encrypt and decrypt node module. DEPRECATED

[![CircleCI](https://circleci.com/gh/swiftyapp/cryptor/tree/master.svg?style=svg)](https://circleci.com/gh/swiftyapp/cryptor/tree/master)

### Install

```
yarn add @swiftyapp/cryptor
```

or

```
npm install @swiftyapp/cryptor
```

### Use

```javascript
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
```