Cleaned up the security object.
Cleaned up the encrypt and decrypt methods. Encrypt will now prepend the IV automatically and decrypt will extract the IV from the supplied data.