Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Are ordered hashes useful?
- Date: Tue, 15 Feb 2011 11:15:43 +0900
- From: "Stephen J. Turnbull" <stephen@example.com>
- Subject: Re: [tlug] Are ordered hashes useful?
- References: <4D4E75AB.5060703@example.com> <4D4FB368.4010403@example.com> <AANLkTimk8AUJMRiwbPjGfDfciCwfaQr9_o3vBXtW2+rW@example.com> <87lj1rza76.fsf@example.com> <AANLkTikqy8G6G1Pt3ramSqxKHKJHSpo=zjHYLVENW0Gb@example.com> <878vxqyfok.fsf@example.com> <AANLkTinyP3HG_7H+qf5BeDikJ_kMSLvxU=EcRYyMubZ0@example.com> <8762suy66k.fsf@example.com> <AANLkTin3X1uhvUNooaMk5OD6y36H23U6dceFBmK7885M@example.com> <AANLkTi=bAnQoetsFvLJJvKE3q+zZQ3gPu4CDrGppdVmN@example.com> <AANLkTi=Hs_q1o8dQ7ASeHVv6qgPvzNzBE5cD3ZBn-PzV@example.com> <AANLkTim4_28yMtqRfhgcgjHrFYe17_oj5wsB5_5+6a4O@example.com> <19797.26672.150768.197652@example.com> <AANLkTi=rczAnG--qVuan8APw=JPqFA5200MDSe=H+TXq@example.com>
Marty Pauley writes: > On Sat, Feb 12, 2011 at 1:47 AM, Stephen J. Turnbull <stephen@example.com> wrote: > > But a hash can't do that, it's a deterministic algorithm and therefore > > always gives the same answer from the same inputs. > > But then it's easy to turn that into an algorithm that can be > different between program runs by choosing a random number at the > start of the program and modifying (or "salting") the key with it > before hashing. If this happens automatically then from the users > point of view it is part of the hashing algorithm. It's rarely a good idea to assume that users have a clue. This is not an exceptional case. :-) Technically, that is not part of the hash algorithm. Since we were talking about implementation of various semantics via hash algorithms, the technical point of view is the appropriate one. What is happening under the hood here is that the data, not the algorithm, is being modified before the hash is applied. And the salt must be saved so that the algorithm can be repeated. If it can't, what good is it?
- References:
- [tlug] [Javascript] Shouldn't there be a sort option on objects
- From: Dave M G
- Re: [tlug] [Javascript] Shouldn't there be a sort option on objects
- From: Raymond Wan
- Re: [tlug] [Javascript] Shouldn't there be a sort option on objects
- From: Josh Glover
- Re: [tlug] [Javascript] Shouldn't there be a sort option on objects
- From: Stephen J. Turnbull
- Re: [tlug] [Javascript] Shouldn't there be a sort option on objects
- From: Josh Glover
- [tlug] Are ordered hashes useful?
- From: Stephen J. Turnbull
- Re: [tlug] Are ordered hashes useful?
- From: Josh Glover
- Re: [tlug] Are ordered hashes useful?
- From: Stephen J. Turnbull
- Re: [tlug] Are ordered hashes useful?
- From: Josh Glover
- Re: [tlug] Are ordered hashes useful?
- From: Kenneth Burling
- Re: [tlug] Are ordered hashes useful?
- From: Josh Glover
- Re: [tlug] Are ordered hashes useful?
- From: Raymond Wan
- Re: [tlug] Are ordered hashes useful?
- From: Stephen J. Turnbull
- Re: [tlug] Are ordered hashes useful?
- From: Marty Pauley
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Are ordered hashes useful?
- Next by Date: Re: [tlug] Are ordered hashes useful?
- Previous by thread: Re: [tlug] Are ordered hashes useful?
- Next by thread: Re: [tlug] Are ordered hashes useful?
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links