Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 639 Bytes

README.md

File metadata and controls

31 lines (19 loc) · 639 Bytes

encrypt-file

Simple nodejs to encrypt file

How use

npm install -g encrypt-file

Then use the cli.

Encrypt a file

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

Decrypt the file

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