jjzjj

StringSink

全部标签

c++ - 如何轻松应用 Crypto++ 哈希函数?

有人可以帮助我如何轻松使用Crypto++库中的哈希函数吗?我尝试将这些代码用于SHA1和MD5。我在StringSink所在的行上有很多错误。错误如下:undefinedreferenceto`CryptoPP::StringSinkTemplate::StringSinkTemplate(std::string&)'感谢您的帮助。//SHACryptoPP::SHA1sha1;std::stringsource="Hello";std::stringhash="";CryptoPP::StringSource(source,true,newCryptoPP::HashFilter(