diff options
author | Eliot Horowitz <eliot@10gen.com> | 2009-01-30 15:05:18 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2009-01-30 15:05:18 -0500 |
commit | bc0133da89a0610538b4bc6e1e5a5fb704366495 (patch) | |
tree | 545a8f0d2a95e87695589d6f88570972f2fb937f /util/md5.hpp | |
parent | d3aa125d87944940080d9fe8816cd4a289d3e3a0 (diff) | |
download | mongo-bc0133da89a0610538b4bc6e1e5a5fb704366495.tar.gz |
method for taking a string and computing string digest
Diffstat (limited to 'util/md5.hpp')
-rw-r--r-- | util/md5.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/util/md5.hpp b/util/md5.hpp index ba2a84b7414..f191b1566e6 100644 --- a/util/md5.hpp +++ b/util/md5.hpp @@ -29,4 +29,10 @@ namespace mongo { return ss.str(); } + inline std::string md5simpledigest( string s ){ + md5digest d; + md5( s.c_str() , d ); + return digestToString( d ); + } + } // namespace mongo |