On 9/12/2012 12:57 AM, Alex Rousskov wrote:
On 09/11/2012 10:41 AM, Eliezer Croitoru wrote:
I do not know Ruby, but googling suggests that Ruby equivalent of
incremental MD5 hash creation would be something like this:
incr_digest = Digest::MD5.new()
incr_digest << url
incr_digest << method
return incr_digest.hexdigest
Thanks Alex.
As a matter of fact I know that already.
the problem is that this is equal to:
req = url + method
incr_digest << req
and actually is like:
incr_digest << "http://www.yahoo.com/GET"
^^^ ^^^^
url method
and this is more like my question.
if it was a string what will be the string structure?
I think i can easily try to extract from the buffer the exact line but
if someone knows how it suppose to be done I will be happy.
Thanks,
Eliezer
HTH,
Alex.
--
Eliezer Croitoru
https://www1.ngtech.co.il
IT consulting for Nonprofit organizations
eliezer <at> ngtech.co.il