RSB  0.7.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
rsb::util::MD5 Class Reference

A simple class representing an md5 sum for a given string. More...

#include <MD5.h>

Collaboration diagram for rsb::util::MD5:
Collaboration graph

Public Member Functions

 MD5 (const std::string &s)
 Creates a new m5s sum for the given string.
virtual ~MD5 ()
std::string toHexString (const bool &pretty=false) const
 Returns a hex encoded string of the sum.

Private Attributes

boost::shared_ptr< MD5Hasherhasher
boost::shared_array< unsigned
char > 
hash

Detailed Description

A simple class representing an md5 sum for a given string.

Author
jwienke

Definition at line 57 of file MD5.h.

Constructor & Destructor Documentation

rsb::util::MD5::MD5 ( const std::string &  s)

Creates a new m5s sum for the given string.

Parameters
sstring to create sum for

Definition at line 398 of file MD5.cpp.

rsb::util::MD5::~MD5 ( )
virtual

Definition at line 404 of file MD5.cpp.

Member Function Documentation

string rsb::util::MD5::toHexString ( const bool &  pretty = false) const

Returns a hex encoded string of the sum.

Parameters
prettyif true, the string will be separated in blocks by spaces

Definition at line 407 of file MD5.cpp.

References hash.

Referenced by rsb::util::operator<<().

Here is the caller graph for this function:

Member Data Documentation

boost::shared_array<unsigned char> rsb::util::MD5::hash
private

Definition at line 80 of file MD5.h.

Referenced by toHexString().

boost::shared_ptr<MD5Hasher> rsb::util::MD5::hasher
private

Definition at line 79 of file MD5.h.


The documentation for this class was generated from the following files: