Re: [squid-users] Generating cache file hash - continued

From: Adrian Chadd <adrian_at_freebsd.org>
Date: Sat, 23 Aug 2008 10:10:43 +0800

Re-read the source code. You'll find the hash function for generating
store keys uses more than the URL.

Adrian

2008/8/21 John =) <jrederz_at_hotmail.com>:
>
> Further to my request yesterday... I would prefer to be able to just generate the md5 hash manually, rather than writing code to use storeKeyPublic() in src/store_key_md5.c. However, I must not be interpreting that function correctly as my hashes do not match the hashes produced in store.log:
>
> For example, for 'GET http://www.squid-cache.org/Images/img8.gif' - putting 001http://www.squid-cache.org/Images/img8.gif into the hash generator gives d5bf8db92c34e66592faa82454b5d867, but store.log shows:F506597929DF2C9F8E51ED12E77E6548
>
> Is there a simple way to produce the correct hash without touching the sourcecode? I am very new to this.
>
>
> John Redford.
>
> _________________________________________________________________
> Get Hotmail on your mobile from Vodafone
> http://clk.atdmt.com/UKM/go/107571435/direct/01/
>
Received on Sat Aug 23 2008 - 02:10:46 MDT

This archive was generated by hypermail 2.2.0 : Sat Aug 23 2008 - 12:00:04 MDT