lib/gibberish/aes.rb in gibberish-2.1.0 vs lib/gibberish/aes.rb in gibberish-2.1.1

- old
+ new

@@ -217,10 +217,10 @@ # @param [String] mode def initialize(password, size=256, mode="cbc") @password = password @size = size @mode = mode - @cipher = OpenSSL::Cipher::Cipher.new("aes-#{size}-#{mode}") + @cipher = OpenSSL::Cipher.new("aes-#{size}-#{mode}") end def encrypt(data, opts={}) salt = generate_salt(opts[:salt]) setup_cipher(:encrypt, salt)