Created
May 24, 2014 09:28
-
-
Save microcai/e256c854bcf4613466f6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
std::string bintohexstring(std::string md5bin) | |
{ | |
typedef boost::hex_from_bin< | |
boost::archive::iterators::transform_width<std::string::iterator, 4, 8, char> | |
> hex_from_bin_iterator; | |
return std::string(hex_from_bin_iterator(md5bin.begin()), | |
hex_from_bin_iterator(md5bin.end())); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment