general/misc.h File Reference

#include <string>

Go to the source code of this file.

Functions

std::string hash (std::string str)
 Calculate a sha1 hash value from a string. The result is a hexadecimal 40 tokens number.
std::string derived (std::string session, int sessnr)
 Find a derived hash from a session string that protects to real session string from observers.


Function Documentation

std::string derived ( std::string  session,
int  sessnr 
)

Find a derived hash from a session string that protects to real session string from observers.

Parameters:
session  session string in need of protection
sessnr  number that increases every communication session

std::string hash ( std::string  str  ) 

Calculate a sha1 hash value from a string. The result is a hexadecimal 40 tokens number.

Parameters:
str  Base string from where the hash value is calculated



Generated on Tue Jan 1 17:30:01 2008 for general/misc.h File Reference by  doxygen   Visit the project page on SourceForge.net Logo