diff --git a/lib/net/ntlm.rb b/lib/net/ntlm.rb index e085a0d..09c1262 100644 --- a/lib/net/ntlm.rb +++ b/lib/net/ntlm.rb @@ -123,9 +123,9 @@ def gen_keys(str) end def apply_des(plain, keys) - dec = OpenSSL::Cipher.new("des-cbc").encrypt - dec.padding = 0 keys.map {|k| + dec = OpenSSL::Cipher.new("des-cbc").encrypt + dec.padding = 0 dec.key = k dec.update(plain) + dec.final }