• Home
Name Date Size #Lines LOC

..--

entry/12-May-2024-658611

screenshots/device/12-May-2024-

.gitignoreD12-May-2024121 88

README.mdD12-May-2024641 168

README_zh.mdD12-May-2024938 2714

build-profile.json5D12-May-20241 KiB4341

hvigorfile.jsD12-May-2024174 21

package.jsonD12-May-2024381 1818

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![](screenshots/device/main.png)
8
9### 相关概念
10
11Base64是一种基于64个可打印字符来表示二进制数据的方法,进而通过编码和解码来对其进行数据转换。
12
13### 相关权限
14
15不涉及。
16
17### 使用说明
18
191.点击**编码**按钮,将会把字符串转换为ASCII码,然后对ASCII码进行编码,并在文本框输出编码后的结果。
20
212.点击**解码**按钮,将会把编码后输出的结果作为解码器的入参,解码后得到ASCII码数组,然后将ASCII码数组转换为字符串在文本框输出。
22
23### 约束与限制
24
251.本示例仅支持在标准系统上运行。
26
272.本示例需要使用DevEco Studio 3.0 Beta4 (Build Version: 3.0.0.992, built on July 14, 2022)才可编译运行。