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
- Host: GitHub
- URL: https://github.com/swiftyapp/cryptor
- Owner: swiftyapp
- License: mit
- Created: 2019-08-26T06:35:07.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-03-14T18:17:32.000Z (over 3 years ago)
- Last Synced: 2025-03-18T06:32:37.940Z (over 1 year ago)
- Topics: crypto, cryptor, decryption, encryption, password, password-hash
- Language: JavaScript
- Homepage:
- Size: 755 KB
- Stars: 12
- Watchers: 2
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Swifty Cryptor
Basic encrypt and decrypt node module. DEPRECATED
[](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
```