use base64 from boost::beast for basic authorization

This commit is contained in:
PobreGato
2026-08-16 03:56:58 +03:00
parent c0f5798af9
commit 5312aba642
4 changed files with 6 additions and 14 deletions
-11
View File
@@ -201,17 +201,6 @@ namespace data
return outCount;
}
std::string ToBase64Standard (std::string_view in)
{
auto str = ByteStreamToBase64 ((const uint8_t *)in.data (), in.length ());
// replace '-' by '+' and '~' by '/'
for (auto& ch: str)
if (ch == '-')
ch = '+';
else if (ch == '~')
ch = '/';
return str;
}
/*
*