README.md
1# util Tool Function – Base64Codec
2
3### Introduction
4
5Base64 is a method of representing binary data based on 64 printable characters. This sample shows Base64 encoding and decoding output.
6
7### Usage
8
91. Touch **Encode**. The sample app converts the string into ASCII code, encodes the ASCII code, and displays the encoded result in the text box.
10
112. Touch **Decode**. The previously encoded result is used as the input to the decoder. After decoding, the sample app obtains an ASCII code array, converts it into a string, and displays the string in the text box.
12
13### Constraints
14
15This sample can only be run on standard-system devices.
16
README_zh.md
1# Base64编解码
2
3### 介绍
4
5Base64是一种基于64个可打印字符来表示二进制数据的方法,本示例展示了Base64编码及解码的结果输出。
6
7使用说明:
81. 点击**编码**按钮,将会把字符串转换为ASCII码,然后对ASCII码进行编码,并在文本框输出编码后的结果。
92. 点击**解码**按钮,将会把编码后输出的结果作为解码器的入参,解码后得到ASCII码数组,然后将ASCII码数组转换为字符串在文本框输出。
10
11### 效果预览
12
13|首页|
14|--------|
15||
16
17
18### 相关权限
19
20不涉及。
21
22### 依赖
23
24不涉及。
25
26### 约束与限制
27
281.本示例仅支持在标准系统上运行;
29
302.本示例仅支持API9版本SDK,版本号:3.2.9.2;
31
323.本示例需要使用DevEco Studio 3.1 Canary1 (Build Version: 3.1.0.100, built on November 3, 2022)才可编译运行。