The simplest command to encrypt/decrypt a file, useful for committing encrypted ".env" files to version control, among other things.
Secret automatically detects if you want to encrypt or decrypt a file: if the file ends with the ".secret" extension then it will try to decrypt it, otherwise it will try to encrypt it.
npm install -g @fabiospampinato/secret
Encrypt a file:
secret myFile.txt
Decrypt a file:
secret myFile.txt.secret
MIT © Fabio Spampinato