1234567891011121314151617181920212223242526272829303132333435363738 |
- #include "pch.h"
- #include "AipApiManager.h"
- #include "TWinCryptF.h"
- #include <iostream>
- #include <string>
- #include <fstream>
- #include <sstream>
- #include <vector>
- #include <map>
- #include <algorithm>
- #include <functional>
- #include <cctype>
- #include <locale>
- #include <ctime>
- using namespace std;
- extern "C" {
- // SHA-256 ÇØ½Ã¸¦ »ý¼ºÇÏ´Â ÇÔ¼ö
- AIPAPIMANAGER_API std::string __stdcall AipApiEncrpyt(const char* AEncMessage)
- {
- try
- {
- TWinCrypt crypt;
- std::string sEncrypted = crypt.EncryptStrToHex(AEncMessage);
- return sEncrypted;
- }
- catch (const std::exception& ex)
- {
- std::string errorMessage = ex.what();
- return "";
- }
- }
- }
|