From 2b92ceb72869d93871fec8bb6f7603e0ce1bafc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorsten=20B=C3=B6ttger?= Date: Tue, 7 Nov 2017 13:49:10 +1300 Subject: [PATCH] remove deprecation warning for OpenSSL::Cipher (based on https://github.com/pluginaweek/encrypted_strings/pull/4) --- 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 d8d934a..1664985 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