summaryrefslogtreecommitdiff
path: root/util/md5.hpp
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2009-01-30 15:05:18 -0500
committerEliot Horowitz <eliot@10gen.com>2009-01-30 15:05:18 -0500
commitbc0133da89a0610538b4bc6e1e5a5fb704366495 (patch)
tree545a8f0d2a95e87695589d6f88570972f2fb937f /util/md5.hpp
parentd3aa125d87944940080d9fe8816cd4a289d3e3a0 (diff)
downloadmongo-bc0133da89a0610538b4bc6e1e5a5fb704366495.tar.gz
method for taking a string and computing string digest
Diffstat (limited to 'util/md5.hpp')
-rw-r--r--util/md5.hpp6
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