using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
namespace HZL_Base64
{
public class Base64
{
/// <summary>
/// BASE64编码字符表,即各编码的表示字符
/// </summary>
private static readonly char[] BASE64_ENCODE_TABLE =
{
'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V',
'W','X','Y','Z','a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r',
's','t','u','v','w','x','y','z','0','1','2','3','4','5','6','7','8','9','+','/','='
};
/// <summary>
/// BASE64字符编码表,根据各编码字符的ASSII码值找到对应的BASE64编码
/// </summary>
private static readonly byte[] BASE64_DECODE_TABLE =
{
255,255,255,255,255,255,255,255,//000-007
255,255,255,255,255,255,255,255,//008-015
255,255,255,255,255,255,255,255,//017-023
255,255,255,255,255,