Changed the encrypion iv to use the random_iv from the SSL library in
lieu of rand.to_s because this sometimes does not generate a large
enough value.