Fix for OpenSSL::Cipher::CipherError: iv length too short

I am periodically seeing the exception:

OpenSSL::Cipher::CipherError: iv length too short

This request changes the AES encryption provider to use the OpenSSL random_iv instead of rand.to_s.