The review of std.hash package
David Nadlinger
see at klickverbot.at
Wed Aug 15 01:55:29 PDT 2012
On Wednesday, 15 August 2012 at 08:49:26 UTC, RivenTheMage wrote:
> Three basic types of hash functions are:
>
> 1) Hash - for fast searching and indexing in data structures
> 2) Checksum - detects the accidental errors in files, archives,
> streams
> 3) Message digest code - prevents the intentional modification
> of data
>
> They should not be mixed IMHO.
Why? 1) might have a different interface than the others, but 2)
and 3) only differ in their cryptological properties, the
interface will likely be just the same – or what are you
thinking about?
David
More information about the Digitalmars-d
mailing list