lib/net/ntlm.rb in rubyntlm-0.6.2 vs lib/net/ntlm.rb in rubyntlm-0.6.3
- old
+ new
@@ -121,14 +121,14 @@
[bits].pack("B*")
}
end
def apply_des(plain, keys)
- dec = OpenSSL::Cipher.new("des-cbc")
+ dec = OpenSSL::Cipher.new("des-cbc").encrypt
dec.padding = 0
keys.map {|k|
dec.key = k
- dec.encrypt.update(plain) + dec.final
+ dec.update(plain) + dec.final
}
end
# Generates a Lan Manager Hash
# @param [String] password The password to base the hash on