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 |
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 hierarchy of classes
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de