You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Secure your .env file with a password/ Secret SALT and use it in your project. Encrypt / decrypt your .env files. Hide your environment variables from the world. You can set that Secret salt as System Env using AWS task defination, or directly using your cloud service provider to enhance the overall app security. Hide your environment variables.
return actual output(decrypted) of encrpted file, default: false
outputDecryptFile
boolean
automatically create original .env file back, default: false
Argument Keys :encrypt({})
Parameter
Type
Description
key
string
secret_key, default: null, required:true
algo
string
algo to decrypt: aes-256-ctr
env
string
env file to encrypt , default: .env
output
boolean
return encryted output, default: false
Steps to Update existing Encrypted File and add new environment variables via CLI
Get original .env: env-hide -o decrypt -k YOUR_SECRET_KEY -f true
Update or Add new Env Variables to your decrypted .env file
Encrypt original .env : env-hide -o encrypt -k YOUR_SECRET_KEY
DELETE the .env file
About
Secure your .env file with a password/ Secret SALT and use it in your project. Encrypt / decrypt your .env files. Hide your environment variables from the world. You can set that Secret salt as System Env using AWS task defination, or directly using your cloud service provider to enhance the overall app security. Hide your environment variables.