Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef HASH_HPP_INCLUDED
00017 #define HASH_HPP_INCLUDED
00018
00019 #include <string>
00020
00021 namespace util {
00022
00023 unsigned char* md5(const std::string& input);
00024 int get_iteration_count(const std::string& hash);
00025 std::string get_salt(const std::string& hash);
00026 bool is_valid_hash(const std::string& hash);
00027 std::string encode_hash(unsigned char* input);
00028 std::string create_hash(const std::string& password, const std::string& salt, int iteration_count =10);
00029
00030 }
00031
00032 #endif // HASH_HPP_INCLUDED