The OpenD Programming Language

makeDigest

This is a convenience function which returns an initialized digest, so it's not necessary to call start manually.

Hash
makeDigest
(
Hash
)
()

Examples

import std.digest.md;
auto md5 = makeDigest!MD5();
md5.put(0);
assert(toHexString(md5.finish()) == "93B885ADFE0DA089CDF634904FD59F71");

Meta