https://github.com/kingcc/crkey
simple crypto tool for nodeJs.
https://github.com/kingcc/crkey
Last synced: 4 months ago
JSON representation
simple crypto tool for nodeJs.
- Host: GitHub
- URL: https://github.com/kingcc/crkey
- Owner: kingcc
- Created: 2016-09-08T06:33:48.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-09-09T03:38:37.000Z (over 9 years ago)
- Last Synced: 2025-02-15T01:03:28.567Z (over 1 year ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Crkey
A simple crypto tool for nodeJs.
Need OpenSSL-Crypto support.
###Install
```
npm install crkey -g
```
###Usage
```js
const crkey = require('crkey');
// To crypto a file.
crkey.crypto(targetFile,
password,
cryptoMode,
callBack(res));
// To decrypto a file.
crkey.decrypto(targetFile,
password,
cryptoMode,
ifToFile ,
callBack(res));
```