#pragma once #include #include namespace reginfo { namespace crypto { // RC4-based stream cipher using the given key. std::vector rc4Crypt(const std::vector& data, const std::string& key); // Base64 encode/decode. std::string base64Encode(const std::vector& data); std::vector base64Decode(const std::string& encoded); // CRC32 checksum. unsigned int crc32(const unsigned char* data, size_t len); } // namespace crypto } // namespace reginfo