https://github.com/wingkwong/node-crypto-cli
CLI for the crypto module to encrypt / decrypt files in your machine
https://github.com/wingkwong/node-crypto-cli
crypto crypto-cli decrypt-files encrypt-files nodejs
Last synced: 6 months ago
JSON representation
CLI for the crypto module to encrypt / decrypt files in your machine
- Host: GitHub
- URL: https://github.com/wingkwong/node-crypto-cli
- Owner: wingkwong
- License: mit
- Created: 2018-07-08T03:10:12.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T17:35:57.000Z (almost 2 years ago)
- Last Synced: 2025-03-16T15:19:02.256Z (7 months ago)
- Topics: crypto, crypto-cli, decrypt-files, encrypt-files, nodejs
- Language: JavaScript
- Homepage:
- Size: 5.86 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# node-crypto-cli
CLI for the crypto module to encrypt / decrypt files in your machine## Installing
```
npm install node-crypto-cli
```For Windows Users, run npm link
```
npm link
```## Command Line Options
### Synopsis
```
Usage: index [options]
```### Options
#### `-v, --version`
Added in v0.1.0
Output the version number
```
node-crypto-cli -v
```
```
node-crypto-cli --version
```Result:
```
0.1.0
```#### `-p, --password `
Added in v0.1.0
Password used to encrypt and decrypt#### `-a, --action `
Added in v0.1.0
Either encrypt or decrypt#### `-h, --help`
Added in v0.1.0
Output usage information### Examples
Encrypting a text file
```
node-crypto-cli -p }W(MXXc6H!4v9,:@ -a encrypt test.txt
```
Result:
```
Action encrypt ran successfully
```
The encrpyted content looks like
```
45eacdd30a4c7ded6da256fd812796d8:c42d0f8b83b8c038b01524222d94f491
```Decrypting a text file
```
node-crypto-cli -p }W(MXXc6H!4v9,:@ -a decrypt test.txt
```
Result:
```
Action decrypt ran successfully
```