Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
[feature] need an easy way to decrypt and load encrypted settings file into memory #9
With gems such as railsconfig/config it would be nice to be able to simply load an encrypted file into memory.
The library should provide an easy way to auto-detect the private key, and have easy to use semantics for opening an encrypted file into memory.
require 'sym/file' require 'config' contents = Sym::File.new('production.yml.enc', key: 'MY_PRIVATE_KEY').read Settings.add_source!(YAML.load(contents))