Skip to content

Commit

Permalink
remove deprecation warning for OpenSSL::Cipher (based on pluginaweek#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
alto committed Nov 7, 2017
1 parent e36e8d0 commit 2b92ceb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/encrypted_strings/symmetric_cipher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2b92ceb

Please sign in to comment.