A cli (command line) version of JSCryptor (a Javascript implementation of with Rob Napier's RNCryptor).
npm install jscryptor-cli -g
Run this tool from your shell following this pattern:
jscryptor <command> [options] <source> [destination]
| Command | description |
|---|---|
| decrypt | decrypt a file |
| encrypt | encrypt a file |
| Command | description |
|---|---|
| -h, --help | output usage information |
| -p, --password | password to be used during encryption (mandatory) |
You must give the file path of the source you want to de/encrypt.
Optionally, you can pass a destination path where the result will be written. If you don't, this tool will write a new file with the same name and location of the source file but with a different extension (.dec for decrypted data, .enc for encrypted).