Simple nodejs to encrypt file
npm install -g encrypt-file
Then use the cli.
You need to provide the relative path to the file you want to encrypt and the password to encrypt with.
encrypt-file enc ../test.txt 123456
The output file will be written in the directory you have run the command with a trailing .enc
You need to provide the relative path to the encrypted file and the password
encrypt-file dec ../test.txt.enc 123456
The output file will be written in the directory you have run the command without the trailing .enc