lib/vidibus/secure.rb in vidibus-secure-0.3.2 vs lib/vidibus/secure.rb in vidibus-secure-4.0.0

- old
+ new

@@ -112,10 +112,10 @@ protected def crypt(cipher_method, data, key, options = {}) return unless data && data != '' - cipher = OpenSSL::Cipher::Cipher.new(options[:algorithm]) + cipher = OpenSSL::Cipher.new(options[:algorithm]) digest = OpenSSL::Digest::SHA512.new(key).digest cipher.send(cipher_method) cipher.pkcs5_keyivgen(digest) result = cipher.update(data) result << cipher.final