| Name | Date | Size | #Lines | LOC | ||
|---|---|---|---|---|---|---|
| .. | - | - | ||||
| AppScope/ | 22-Oct-2025 | - | 35 | 32 | ||
| entry/ | 22-Oct-2025 | - | 1,081 | 937 | ||
| hvigor/ | 22-Oct-2025 | - | 38 | 36 | ||
| screenshots/ | 22-Oct-2025 | - | ||||
| .gitignore | D | 22-Oct-2025 | 133 | 12 | 12 | |
| README.md | D | 22-Oct-2025 | 3.4 KiB | 81 | 61 | |
| build-profile.json5 | D | 22-Oct-2025 | 1.4 KiB | 58 | 57 | |
| code-linter.json5 | D | 22-Oct-2025 | 958 | 35 | 34 | |
| hvigorfile.ts | D | 22-Oct-2025 | 843 | 22 | 5 | |
| oh-package.json5 | D | 22-Oct-2025 | 834 | 26 | 24 | |
| ohosTest.md | D | 22-Oct-2025 | 973 | 10 | 8 |
README.md
1# 使用3DES对称密钥(ECB模式)加解密 2 3### 介绍 4 5本示例主要展示了使用3DES对称密钥(ECB模式)加解密(ArkTS)的同步异步方法和C/C++场景 。该工程中展示的代码详细描述可查如下链接。 6 7- [使用3DES对称密钥(ECB模式)加解密(ArkTS)](https://docs.openharmony.cn/pages/v5.0/zh-cn/application-dev/security/CryptoArchitectureKit/crypto-3des-sym-encrypt-decrypt-ecb.md) 8- [使用3DES对称密钥(ECB模式)加解密(C/C++)](https://docs.openharmony.cn/pages/v5.0/zh-cn/application-dev/security/CryptoArchitectureKit/crypto-3des-sym-encrypt-decrypt-ecb-ndk.md) 9 10### 效果预览 11 12| 首页效果图 | 执行结果图 | 13| ------------------------------------------------------------ | ------------------------------------------------------------ | 14| <img src="./screenshots/EncryptionDecryptionGuidance3DES1.png" style="zoom: 50%;" /> | <img src="./screenshots/EncryptionDecryptionGuidance3DES2.png" style="zoom: 50%;" /> | 15 16### 使用说明 17 181. 运行Index主界面。 192. 页面呈现上述执行结果图效果,点击不同按钮可以跳转到不同功能页面,点击跳转页面中按钮可以执行对应操作,并更新文本内容。 203. 运行测试用例EncryptionDecryptionGuidance3DES.test.ets文件对页面代码进行测试可以全部通过。 21 22### 工程目录 23 24``` 25entry/src/ 26 ├── main 27 │ ├── cpp 28 │ │ ├── types 29 │ │ | ├── libentry 30 │ │ | ├── index.d.ts 31 │ │ | ├── oh-package.json5 32 │ │ | ├── project 33 │ │ | ├── 3des_ecb_encryption_decryption.cpp 34 │ │ | ├── file.h 35 │ │ ├── CMakeList.txt 36 │ │ ├── napi_init.cpp 37 │ ├── ets 38 │ │ ├── entryability 39 │ │ ├── entrybackupability 40 │ │ ├── pages 41 │ │ ├── Index.ets // 使用3DES对称密钥(ECB模式)加解密示例代码 42 │ │ ├── 3des_ecb_encryption_decryption.ets 43 │ │ ├── 3des_ecb_encryption_decryption_asynchronous.ets 44 │ │ ├── 3des_ecb_encryption_decryption_synchronous.ets 45 │ ├── module.json5 46 │ └── resources 47 ├── ohosTest 48 │ ├── ets 49 │ │ └── test 50 │ │ ├── Ability.test.ets 51 │ │ ├── EncryptionDecryptionGuidance3DES.test.ets // 自动化测试代码 52 │ │ └── List.test.ets 53``` 54 55### 相关权限 56 57不涉及。 58 59### 依赖 60 61不涉及。 62 63### 约束与限制 64 651.本示例仅支持标准系统上运行, 支持设备:RK3568。 66 672.本示例为Stage模型,支持API14版本SDK,版本号:5.0.2.57,镜像版本号:OpenHarmony_5.0.2.58。 68 693.本示例需要使用DevEco Studio 5.0.1 Release (Build Version: 5.0.5.306, built on December 6, 2024)及以上版本才可编译运行。 70 71### 下载 72 73如需单独下载本工程,执行如下命令: 74 75```` 76git init 77git config core.sparsecheckout true 78echo code/DocsSample/Security/CryptoArchitectureKit/EncryptionDecryption/EncryptionDecryptionGuidance3DES > .git/info/sparse-checkout 79git remote add origin https://gitee.com/openharmony/applications_app_samples.git 80git pull origin master 81````