From ad288e2b94f7707c237dcce0132680c374fbab4b Mon Sep 17 00:00:00 2001 From: Merlescu Codez Date: Sun, 20 Oct 2019 18:47:10 -0400 Subject: [PATCH] Updated to use non-deprecated OpenSSL::Cipher.new --- 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