Commands for Chef's Knife Command to Encrypt and Decrypt Data
The encrypt
and decrypt
knife commands uses the configured data
bag secret to encrypt and decrypt data at the command line.
This plugin is distributed as a Ruby Gem. To install it, run:
$ gem install knife-crypt
Encrypt a string
$ knife encrypt '"foo"'
Encrypt an array
$ knife encrypt '["foo", "bar"]'
Encrypt a hash
$ knife encrypt '{"foo"=>{"bar"=>"baz"}}'
Decrypt to a string
$ knife decrypt e4ibEHAinGltDjYNQPV4rw==
Decrypt to an array
$ knife decrypt 7wrizj9MAjmSVWWq69DUql0hNHFv7Hp/1tnQ/NJuD08=
Decrypt to a hash
$ knife decrypt nsXFeAANrmnBNu+QPfOHZFB5szSRA+Ezu94fmrJnNhk=
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request