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/secretEncrypt a file:
secret myFile.txtDecrypt a file:
secret myFile.txt.secretMIT © Fabio Spampinato