dotenv-vault
Dotenv-vault -A powerful tool to manage environment configs
Experimenting with this new tool for better security of secret keys.
Dotenv-vault is a powerful solution to overcome these challenges. It is a separate package designed to manage environment variables and secrets securely.
it works by converting your .env file into two file, one is vault which can be shared or uploaded to git without any worries and second is key file which decrypts the vault. this key file is not to be shared.
both of the files are dependent on each other hence it works like two way security.
I created a simple node project to get better understanding.