| 81 | } |
| 82 | |
| 83 | static void check_string(const acl::string& key, const acl::string& plain) |
| 84 | { |
| 85 | acl::md5 md5; |
| 86 | if (!key.empty()) { |
| 87 | md5.update(key, key.size()); |
| 88 | } |
| 89 | |
| 90 | const char* res = md5.update(plain, plain.size()).finish().get_string(); |
| 91 | printf("key=%s, plain=%s, res=%s\r\n", key.c_str(), plain.c_str(), res); |
| 92 | } |
| 93 | |
| 94 | static void usage(const char* procname) |
| 95 | { |