| 123456789101112131415161718192021 |
- #pragma once
- #include <string>
- class Crypto
- {
- public:
- // aes ebc 加密(输出 base64)
- static std::string aes_encrypt_ecb_base64(std::string data, unsigned char* key, int keylen);
-
- // aes ebc 加密(输出 hex)
- static std::string aes_encrypt_ecb_hex(std::string data, unsigned char* key, int keylen);
- // aes ebc 解密(输出 hex)
- static std::string aes_decrypt_ecb_hex(std::string hex_data, unsigned char* key, int keylen);
- // aes ebc 解密(输出 base64)
- static std::string aes_decrypt_ecb_base64(std::string base64_data, unsigned char* key, int keylen);
- };
|