| 123456789101112 |
- // to avoid "AES_KEY" definaition conflict
- #include "NavicatCrypto/NavicatCrypto.hpp"
- namespace patcher {
- std::string EncryptPublicKey(const char* public_key, size_t len) {
- Navicat11Crypto cipher("23970790", 8);
- auto&& temp = cipher.EncryptString(public_key, len);
- return std::string(temp.begin(), temp.end());
- }
- }
|