-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/5.0' of github.com:AntelopeIO/leap into gh_1878
- Loading branch information
Showing
9 changed files
with
199 additions
and
447 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
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,16 @@ | ||
#pragma once | ||
#include <string> | ||
#include <string_view> | ||
#include <vector> | ||
|
||
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::vector<char> base64_decode( std::string_view 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::vector<char> base64url_decode( std::string_view encoded_string); | ||
} // namespace fc |
Oops, something went wrong.