/** ****************************************************************************** * @file : Encryption.hpp * @author : Dream * @brief : None * @attention : None * @date : 24-10-3 ****************************************************************************** */ #ifndef ENCRYPTION_HPP #define ENCRYPTION_HPP #include // RC4 加密/解密 class Encryption { public: // RC4 加密数据 static std::string enRc4(const std::string& data, const std::string& key); // RC4 解密数据 static std::string deRc4(const std::string& data, const std::string& key); // RAS 加密数据 static std::string enRas(const std::string& data, const std::string& key); // RAS 解密数据 static std::string deRas(const std::string& data, const std::string& key); }; #endif // ENCRYPTION_HPP