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: "<