From 7ca8c39354786fe663804cd1cf5873788c92d903 Mon Sep 17 00:00:00 2001 From: "HuYingzhuo(hugo/hyzboy)" Date: Fri, 21 Jul 2023 19:34:04 +0800 Subject: [PATCH] added base64test.cpp --- CMakeLists.txt | 5 ++++- utils/base64test.cpp | 48 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 utils/base64test.cpp diff --git a/CMakeLists.txt b/CMakeLists.txt index 8e6f8a6..5b8bb7d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -105,4 +105,7 @@ cm_example_project("android" AndroidDeviceAnalysis) #################################################################################################### add_executable(PAttribTest utils/PAttribTest.cpp) -cm_example_project("utils" PAttribTest) \ No newline at end of file +cm_example_project("utils" PAttribTest) + +add_executable(Base64Test utils/base64test.cpp) +cm_example_project("utils" Base64Test) \ No newline at end of file diff --git a/utils/base64test.cpp b/utils/base64test.cpp new file mode 100644 index 0000000..0c7a813 --- /dev/null +++ b/utils/base64test.cpp @@ -0,0 +1,48 @@ +#include +#include +#include + +using namespace hgl; +using namespace hgl::io; +using namespace hgl::crypt; + +using namespace std; + +int main(int,char **) +{ + constexpr uchar test_str[]="BASE64 Decode and Encode"; //测试编解码用字符串 + + cout<<"Origin: "<