Skip to content

Commit ee3d5b8

Browse files
committed
Fix symmetric ciphers not working on Ruby 1.8.6 and below
1 parent 15e9848 commit ee3d5b8

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎CHANGELOG.rdoc‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
== master
22

3+
* Fix symmetric ciphers not working on Ruby 1.8.6 and below
4+
35
== 0.3.0 / 2008-12-14
46

57
* Remove the PluginAWeek namespace

‎lib/encrypted_strings/symmetric_cipher.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def encrypt(data)
9292

9393
private
9494
def build_cipher(type) #:nodoc:
95-
cipher = OpenSSL::Cipher.new(algorithm).send(type)
95+
cipher = OpenSSL::Cipher::Cipher.new(algorithm).send(type)
9696
cipher.pkcs5_keyivgen(password)
9797
cipher
9898
end

0 commit comments

Comments
 (0)