How to easily apply Crypto++ hash functions?
问题 Can someone help me how can I easily use hash functions from Crypto++ library? I tried used these codes for SHA1 and MD5. I have many errors on line where is StringSink . The errors are like: undefined reference to `CryptoPP::StringSinkTemplate::StringSinkTemplate(std::string&)' Thanks for help. // SHA CryptoPP::SHA1 sha1; std::string source = "Hello"; std::string hash = ""; CryptoPP::StringSource(source, true, new CryptoPP::HashFilter(sha1, new CryptoPP::HexEncoder(new CryptoPP::StringSink