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

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.

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));

```