mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-10-01 03:57:47 +03:00
Adds base64 support via mbedtls
This is inspered in the work done at: #1123
This commit is contained in:
16
src/utils/base64.h
Normal file
16
src/utils/base64.h
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
|
||||
namespace modsecurity {
|
||||
namespace Utils {
|
||||
|
||||
class Base64 {
|
||||
public:
|
||||
Base64() { }
|
||||
|
||||
static std::string encode(std::string& data);
|
||||
static std::string decode(std::string& data);
|
||||
};
|
||||
|
||||
|
||||
} // namespace Utils
|
||||
} // namespace modsecurity
|
Reference in New Issue
Block a user