- hash.resize(20);\r
- sha1((unsigned char *)solution.c_str(),solution.size(),&hash[0]);\r
- Hex::Encode(hash,encodedhash);\r
+ Poco::SHA1Engine sha1;\r
+ sha1.update(solution);\r
+ encodedhash=Poco::DigestEngine::digestToHex(sha1.digest());\r
+ StringFunctions::UpperCase(encodedhash,encodedhash);\r
+\r
+// hash.resize(20);\r
+// sha1((unsigned char *)solution.c_str(),solution.size(),&hash[0]);\r
+// Hex::Encode(hash,encodedhash);\r