navicat-keygen/navicat-patcher/EncryptPublicKey.cpp
2018-08-14 19:49:48 +08:00

13 lines
353 B
C++

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