-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[5.0 -> main] Revert "Fix base64 encoding"
- Loading branch information
Showing
5 changed files
with
104 additions
and
440 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
#pragma once | ||
#include <string> | ||
#include <string_view> | ||
|
||
namespace fc { | ||
std::string base64_encode(unsigned char const* bytes_to_encode, unsigned int in_len); | ||
inline std::string base64_encode(char const* bytes_to_encode, unsigned int in_len) { return base64_encode( (unsigned char const*)bytes_to_encode, in_len); } | ||
std::string base64_encode( const std::string_view& enc ); | ||
std::string base64_decode( const std::string_view& encoded_string); | ||
std::string base64_encode( const std::string& enc ); | ||
std::string base64_decode( const std::string& encoded_string); | ||
|
||
std::string base64url_encode(unsigned char const* bytes_to_encode, unsigned int in_len); | ||
inline std::string base64url_encode(char const* bytes_to_encode, unsigned int in_len) { return base64url_encode( (unsigned char const*)bytes_to_encode, in_len); } | ||
std::string base64url_encode( const std::string_view& enc ); | ||
std::string base64url_decode( const std::string_view& encoded_string); | ||
std::string base64url_encode( const std::string& enc ); | ||
std::string base64url_decode( const std::string& encoded_string); | ||
} // namespace fc |
Oops, something went wrong.