Skip to content

Commit

Permalink
Corrected deprication of constant OpenSSL::Cipher::Cipher
Browse files Browse the repository at this point in the history
  • Loading branch information
545ch4 committed Feb 28, 2017
1 parent 8a5d80e commit 6329a14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/gibberish/aes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def initialize(password, size=256, mode="cbc")
@password = password
@size = size
@mode = mode
@cipher = OpenSSL::Cipher::Cipher.new("aes-#{size}-#{mode}")
@cipher = OpenSSL::Cipher.new("aes-#{size}-#{mode}")
end

def encrypt(data, opts={})
Expand Down
2 changes: 1 addition & 1 deletion lib/gibberish/rsa.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def self.generate(bits=2048)

def initialize(key)
@key = key
@cipher = OpenSSL::Cipher::Cipher.new('aes-256-cbc')
@cipher = OpenSSL::Cipher.new('aes-256-cbc')
end

def public_key
Expand Down

0 comments on commit 6329a14

Please sign in to comment.