A command-line file encrypt tool made using Node.js
Note: this project still a work in progress
- Encrypt a single file
- Decrypt a single file
- Encrypt a folder
- Decrypt a folder
- Download this source code
- Install its dependencies
npm install
- Tricrypt takes one of two commands: encrypt or decrypt
$ node main.js encrypt [options]
$ node main.js decrypt [options]
Option | alias | description |
---|---|---|
input | i | a path to an input file |
ouput | o | a path to an output folder |
password | p | a password to be used as a cipher |
$ node main.js encrypt -i ~path/to/a/file.txt -o ~path/to/a/folder -p mypassword
Option | alias | description |
---|---|---|
input | i | a path to an input file |
ouput | o | a path to an output folder |
password | p | a password to be used as a cipher |
$ node main.js decrypt -i ~path/to/a/file.tricrypt.txt -o ~path/to/a/folder -p mypassword
Tricrypt has the capability to encrypt and decrypt the folders. For encrypting/decrypting the folder the usage is the same as above. Tricrypt encrypts all the files in a folder and outputs the compressed zip of the encrypted files in the desired output directory. However, for decryption, you would need provide the path of the unzipped directory.
The support to decrypt a zipped folder would be added in the near future.