ManageIQ/manageiq — pull request #962 by kbrock (2014-11-01 03:51:04+00:00)
Title: Simplify re-encrypt logic

Want to introduce the ability to decrypt with an arbitrary key so we can convert from one v2_key to another.

- separate auth_model_spec and auth_config_model_spec
- consolidate fix_auth#hardcode logic with rencrypt logic
- encrypt_version_{1,2}(str) -> encrypt_version(str, #, key)
- decrypt_version_{0,1,2}(str) -> key.decrypt64(str)
(it was a partial implementation of decrypt)

https://bugzilla.redhat.com/show_bug.cgi?id=1159009

/cc @jrafanie @Fryguy