From a2cca0d0d53a0251f6a65ddca8d58059368662b1 Mon Sep 17 00:00:00 2001 From: "Ezra M. Chang" Date: Tue, 9 May 2017 15:59:53 -0500 Subject: [PATCH] For Ruby v2.4.0 onward: https://ruby-doc.org/stdlib-2.4.0/libdoc/openssl/rdoc/OpenSSL/Cipher/Cipher.html --- lib/encrypted_strings/symmetric_cipher.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/encrypted_strings/symmetric_cipher.rb b/lib/encrypted_strings/symmetric_cipher.rb index 154e1f9..bb965c2 100644 --- a/lib/encrypted_strings/symmetric_cipher.rb +++ b/lib/encrypted_strings/symmetric_cipher.rb @@ -93,7 +93,7 @@ def encrypt(data) private def build_cipher(type) #:nodoc: - cipher = OpenSSL::Cipher::Cipher.new(algorithm).send(type) + cipher = OpenSSL::Cipher.new(algorithm).send(type) cipher.pkcs5_keyivgen(password) cipher end