New hash API: namespace
Jonathan M Davis
jmdavisProg at gmx.com
Mon Jun 25 03:02:06 PDT 2012
On Monday, June 25, 2012 11:35:33 Johannes Pfau wrote:
> OK, so I understand std.util is probably not a good idea.
>
> So the candidates for the namespace are:
> * std.crypto.hash
> * std.checksum
> * std.crypto.hash and std.checksum
> * std.hash
>
> and the same with hash replaced by digest.
> So which one should we use?
The previous discussions on this resulted in us going with std.hash.md5,
std.hash.sha1, and std.hash.crc32. I don't see any reason to change that, and
crypto was specifically _not_ chosen, because crc32 isn't cryptographically
sound. But std.hash encompasses things quite nicely, since they're all hashes.
- Jonathan M Davis
More information about the Digitalmars-d
mailing list