MongoDB  2.7.0
password_digest.h
1 
29 #pragma once
30 
31 #include <string>
32 
33 #include "mongo/base/string_data.h"
34 #include "mongo/util/md5.hpp"
35 
36 namespace mongo {
37 
42  std::string createPasswordDigest(const StringData& username,
43  const StringData& clearTextPassword);
44 
45 } // namespace mongo
46 
std::string createPasswordDigest(const StringData &username, const StringData &clearTextPassword)
Hashes the password so that it can be stored in a user object or used for MONGODB-CR authentication...
Definition: password_digest.cpp:35