An NTLM Authentication Library for Ruby
This code is a derivative of “dbf2.rb” written by yrock and Minero Aoki. You can find original code here: jp.rubyist.net/magazine/?0013-CodeReview
Copyright © 2005,2006 yrock
2006-02-11 refactored by Minero Aoki
All protocol information used to write this code stems from “The NTLM Authentication Protocol” by Eric Glass. The author would thank to him for this tremendous work and making it available on the net. davenport.sourceforge.net/ntlm.html
Copyright © 2003 Eric Glass
The author also looked Mozilla-Firefox-1.0.7 source code, namely, security/manager/ssl/src/nsNTLMAuthModule.cpp and Jonathan Bastien-Filiatrault’s libntlm-ruby. “x2a.org/websvn/filedetails.php? repname=libntlm-ruby&path=%2Ftrunk%2Fntlm.rb&sc=1” The latter has a minor bug in its separate_keys function. The third key has to begin from the 14th character of the input string instead of 13th:)