npm install -g @ericsantos/crypt-file
Usage: crypt-file <command>
where is one of:
encrypt, decrypt
crypt-file encrypt --in filetobeencrypted.txt --out fileencrypted --key-file yourprivatekey.txt
crypt-file encrypt --in filetobeencrypted.txt --out fileencrypted --key yourkeywritedhere
crypt-file decrypt --in filetobedecrypted --out filedecrypted.txt --key-file yourprivatekey.txt
crypt-file decrypt --in filetobedecrypted --out filedecrypted.txt --key yourkeywritedhere
crypt-file decrypt --in filetobedecrypted --show-only --key yourkeywritedhere