文件最后提交记录最后更新时间
FA update Stage Signed-off-by: taobohao <taobohao@huawei.com> 3 年前
!2304 修复Cipher点击重置无法清除数据问题(0230) * 修复Cipher点击重置无法清除数据问题 3 年前
Issue: #I6DWJY Description: BasicFeature模块,目录结构迁移 Sig: SIG_Sample Feature or Bugfix: Bugfix Binary Source: No Signed-off-by: hongshengquan <hongshengquan3@huawei.com> 3 年前
description: Add build-profile.json5 ! Sig: SIG_Sample Feature or Bugfix: Bugfix Binary Source: No Signed-off-by: taobohao <taobohao@huawei.com> 3 年前
!2255 【0230】code目录下代码适配 part.1+2+3 * code目录下代码适配 part.3 * code目录下代码适配 part.2 * code目录下代码适配 part.1 3 年前
!2255 【0230】code目录下代码适配 part.1+2+3 * code目录下代码适配 part.3 * code目录下代码适配 part.2 * code目录下代码适配 part.1 3 年前
!2255 【0230】code目录下代码适配 part.1+2+3 * code目录下代码适配 part.3 * code目录下代码适配 part.2 * code目录下代码适配 part.1 3 年前
FA update Stage Signed-off-by: taobohao <taobohao@huawei.com> 3 年前
!2255 【0230】code目录下代码适配 part.1+2+3 * code目录下代码适配 part.3 * code目录下代码适配 part.2 * code目录下代码适配 part.1 3 年前
README.md

Cipher

Introduction

This sample shows how to use cipher algorithms, including Rivest-Shamir-Adleman (RSA) and Advanced Encryption Standard (AES). The display effect is as follows:

Concepts

RSA: A public-key cryptosystem that works on two different keys: a public encryption key and a private decryption key.

AES: A block encryption standard established by the U.S. National Institute of Standards and technology (NIST). It is also called Rijndael.

Required Permissions

N/A.

Usage

  1. On the home screen, touch the Encrypt button. On the Encrypt screen, select an encryption algorithm from the Encryption Algorithm drop-down list box, enter the content to be encrypted in the text box, and touch the Encrypt button.

    The encrypted content is displayed in the text box below.

  2. Touch the Reset button to clear the content in the text box.

  3. Touch the Decrypt button on the home screen. On the Decrypt screen, select a decryption algorithm from the Decryption Algorithm drop-down list box, enter the content to be decrypted in the text box, and touch the Decrypt button.

    The decrypted content is displayed in the text box below.

  4. Touch the Reset button to clear the content in the text box.

Constraints

  • This sample can only be run on standard-system devices.

  • This sample requires DevEco Studio 3.1 Canary1 (Build Version: 3.1.0.100) to compile and run.