2023-12-17 03:29:08 -08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "EHS.h"
|
|
|
|
#include "Str.h"
|
|
|
|
|
2023-12-17 15:56:13 -08:00
|
|
|
namespace ehs
|
2023-12-17 03:29:08 -08:00
|
|
|
{
|
|
|
|
class Base64
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
static const char ascii[];
|
|
|
|
|
|
|
|
public:
|
|
|
|
static Str_8 Encode(const Str_8 input);
|
|
|
|
|
|
|
|
static Str_8 Decode(const Str_8 input);
|
|
|
|
|
|
|
|
private:
|
|
|
|
static char Find(const char c);
|
|
|
|
|
|
|
|
static bool IsBase64(const char c);
|
|
|
|
|
|
|
|
};
|
|
|
|
}
|