Encryption.hpp 879 B

123456789101112131415161718192021222324252627282930313233
  1. /**
  2. ******************************************************************************
  3. * @file : Encryption.hpp
  4. * @author : Dream
  5. * @brief : None
  6. * @attention : None
  7. * @date : 24-10-3
  8. ******************************************************************************
  9. */
  10. #ifndef ENCRYPTION_HPP
  11. #define ENCRYPTION_HPP
  12. #include <string>
  13. // RC4 加密/解密
  14. class Encryption
  15. {
  16. public:
  17. // RC4 加密数据
  18. static std::string enRc4(const std::string& data, const std::string& key);
  19. // RC4 解密数据
  20. static std::string deRc4(const std::string& data, const std::string& key);
  21. // RAS 加密数据
  22. static std::string enRas(const std::string& data, const std::string& key);
  23. // RAS 解密数据
  24. static std::string deRas(const std::string& data, const std::string& key);
  25. };
  26. #endif // ENCRYPTION_HPP