opscode/chef — pull request #481 by danielsdeleo (2012-11-15 00:13:12+00:00)
Title: [CHEF-3392] JSON serialize encrypted data bags, use random IV

* Use JSON instead of YAML to serialize encrypted data bag values before
encrypting.
* Use a random IV for each encrypted value for resilience against some
types of crypto attacks. Fixes CHEF-3480.

----
### Questions:
* Better ideas for any method or variable names?
* Are the EncryptedDataBagItem tests still useful now that they basically assert that it called Encryptor.for_encrypted_item?
* Should the Encryptor tests specify an 'iv' and then assert a match on the cryptotext?