Sha256: 1ff50e49be274ceb38a41c0921484ea84f23517740813daf66196c5820b82685

Contents?: true

Size: 1.22 KB

Versions: 3

Compression:

Stored size: 1.22 KB

Contents

# Knife::Crypt

[![Build History][2]][1] [![Dependency Status][4]][3]

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.

[1]: http://travis-ci.org/cgriego/knife-crypt
[2]: https://secure.travis-ci.org/cgriego/knife-crypt.png?branch=master
[3]: https://gemnasium.com/cgriego/knife-crypt
[4]: https://gemnasium.com/cgriego/knife-crypt.png

## Installation

This plugin is distributed as a Ruby Gem. To install it, run:

    $ gem install knife-crypt

## Usage

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=

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Added some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
knife-crypt-0.0.3 README.md
knife-crypt-0.0.2 README.md
knife-crypt-0.0.1 README.md