Fixed "System::OpenURI". Added SHA256. Added URI safe Base64 methods.
This commit is contained in:
@@ -8,17 +8,26 @@ namespace ehs
|
||||
class EHS_LIB_IO Base64
|
||||
{
|
||||
private:
|
||||
static const char ascii[];
|
||||
static constexpr UInt_8 asciiUrl[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";
|
||||
static constexpr UInt_8 ascii[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
||||
|
||||
public:
|
||||
static Str_8 EncodeURL(const Str_8 &input);
|
||||
|
||||
static Str_8 Encode(const Str_8 &input);
|
||||
|
||||
|
||||
static Str_8 DecodeURL(const Str_8 &input);
|
||||
|
||||
static Str_8 Decode(const Str_8 &input);
|
||||
|
||||
private:
|
||||
static char Find(char c);
|
||||
|
||||
static bool IsBase64(char c);
|
||||
static UInt_8 FindURL(const UInt_8 &c);
|
||||
|
||||
static UInt_8 Find(const UInt_8 &c);
|
||||
|
||||
static bool IsBase64URL(const UInt_8 &c);
|
||||
|
||||
static bool IsBase64(const UInt_8 &c);
|
||||
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user