class Akenti::MessageDigest |
A MessageDigest object is a reference-count pointer that wraps a MessageDigestImpl object.
![]() | MessageDigest (MessageDigestImpl* impl = NULL) Constructs a MessageDigest given a MessageDigestImpl object. |
![]() | ~MessageDigest () Destroys this object. |
![]() | getInstance (const string& alg) Returns a MessageDigest object given the name of an algorithm specified by alg. |
![]() | digest (const string &alg, const string &data) A convenient method that returns a hash given the name of an algorithm specified by alg and the string to be hashed specified by data. |
![]() | getNullDigest () Returns a Null Digest engine |
A MessageDigest object is a reference-count pointer that wraps a MessageDigestImpl object. It provides applications, albeit indirectly, with the functionality of a message digest algorithm such as MD5 or SHA1. Message digests are secure one-way hash functions that take arbitrary-sized data and output a fixed-length hash value.* Usage: * try { * MessageDigest md = MessageDigest::getInstance("MD5"); * * md->update("Message"); * md->update("Digest"); * * string hash = md->digest(); * } catch(SecurityException e) { ... } *
Alphabetic index HTML hierarchy of classes or Java