Encrypted enironment
Ruby utility to load encrypted variables into the environment
Install
- Add the following line to the Gemfile:
gem "encrypted-environment", git: "[email protected]:pepibumur/encrypted-environment.git"
- Run
bundle install
Usage
require "encrypted/environment"
Encrypted::Environment.load_from_ejson(
"path/to/env.ejson",
secrets_path: "secrets",
private_key: "key"
)
Encrypted::Environment.encrypt_ejson(
"path/to/env.ejson",
secrets_path: "secrets",
private_key: "key"
)