Skip to content

Commit

Permalink
Fixed OpenSSL::Cipher::Chipher deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
detunized committed Apr 19, 2018
1 parent 1323396 commit 291fa65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/lastpass/parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def self.decode_aes256_cbc_base64 data, encryption_key
# Allowed ciphers are: :ecb, :cbc.
# If for :ecb iv is not used and should be set to "".
def self.decode_aes256 cipher, iv, data, encryption_key
aes = OpenSSL::Cipher::Cipher.new "aes-256-#{cipher}"
aes = OpenSSL::Cipher.new "aes-256-#{cipher}"
aes.decrypt
aes.key = encryption_key
aes.iv = iv
Expand Down

0 comments on commit 291fa65

Please sign in to comment.