base64.h
来自「本人收集整理的一份c/c++跨平台网络库」· C头文件 代码 · 共 33 行
H
33 行
//*********************************************************************//* C_Base64 - a simple base64 encoder and decoder.//*//* Copyright (c) 1999, Bob Withers - bwit@pobox.com//*//* This code may be freely used for any purpose, either personal//* or commercial, provided the authors copyright notice remains//* intact.//*********************************************************************#ifndef UTILS_BASE_BASE64_H_#define UTILS_BASE_BASE64_H_#include <string>namespace utils_base {class Base64{public: static std::string encode(const std::string & data); static std::string decode(const std::string & data); static std::string encodeFromArray(const char * data, size_t len);private: static const std::string Base64::Base64Table; static const std::string::size_type Base64::DecodeTable[];};} // namespace utils_base#endif // UTILS_BASE_BASE64_H_
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?