src/MD5.cc File Reference

#include "mimotera++/MD5.hh"
#include <cstdio>

Include dependency graph for MD5.cc:

Go to the source code of this file.

Defines

#define S11   7
#define S12   12
#define S13   17
#define S14   22
#define S21   5
#define S22   9
#define S23   14
#define S24   20
#define S31   4
#define S32   11
#define S33   16
#define S34   23
#define S41   6
#define S42   10
#define S43   15
#define S44   21

Functions

std::ostream & operator<< (std::ostream &os, const MD5 &md5)
std::string md5 (const std::string str)


Define Documentation

#define S11   7

Definition at line 41 of file MD5.cc.

#define S12   12

Definition at line 42 of file MD5.cc.

#define S13   17

Definition at line 43 of file MD5.cc.

#define S14   22

Definition at line 44 of file MD5.cc.

#define S21   5

Definition at line 45 of file MD5.cc.

#define S22   9

Definition at line 46 of file MD5.cc.

#define S23   14

Definition at line 47 of file MD5.cc.

#define S24   20

Definition at line 48 of file MD5.cc.

#define S31   4

Definition at line 49 of file MD5.cc.

#define S32   11

Definition at line 50 of file MD5.cc.

#define S33   16

Definition at line 51 of file MD5.cc.

#define S34   23

Definition at line 52 of file MD5.cc.

#define S41   6

Definition at line 53 of file MD5.cc.

#define S42   10

Definition at line 54 of file MD5.cc.

#define S43   15

Definition at line 55 of file MD5.cc.

#define S44   21

Definition at line 56 of file MD5.cc.


Function Documentation

std::string md5 ( const std::string  str  ) 

Function for calculation and printing

This function can be used to calculate the MD5 fingerprint of a string and immediately get the hexdigit as return value.

Provided for convenience in order to mimik the PHP function.

Parameters:
str The string to calculate the MD5
Returns:
The hexdigit of the str

Definition at line 352 of file MD5.cc.

References MD5::hexdigest(), and md5().

Referenced by md5().

Here is the call graph for this function:

std::ostream& operator<< ( std::ostream &  os,
const MD5 md5 
)

Definition of operator <<

Parameters:
os The output stream
md5 The md5 to print out
Returns:
The output stream

Definition at line 345 of file MD5.cc.

References MD5::print().

Here is the call graph for this function:


Generated on Fri Sep 18 19:15:23 2009 for Mimotera++ by  doxygen 1.5.7.1