Network.hpp 888 B

1234567891011121314151617181920212223242526272829303132
  1. /**
  2. ******************************************************************************
  3. * @file : Network.hpp
  4. * @author : Dream
  5. * @brief : None
  6. * @attention : None
  7. * @date : 24-10-3
  8. ******************************************************************************
  9. */
  10. #ifndef NETWORK_HPP
  11. #define NETWORK_HPP
  12. #include <string>
  13. // 处理网络请求
  14. class Network {
  15. public:
  16. // 发送 POST 请求
  17. static std::string post_request(const std::string& url, const std::string& postdata);
  18. static std::string custom_base64_decode(const std::string &encoded_string);
  19. static std::string custom_base64_decode_2(const std::string &encoded_string);
  20. static std::string base64_decode(const std::string &encoded_string);
  21. static std::string RC4Decrypt(const std::string &encrypted_data, const std::string &key);
  22. };
  23. #endif // NETWORK_HPP