From b23a46efcc682f54ba7020ef8a13dd4484d20182 Mon Sep 17 00:00:00 2001 From: chenwenhui133 <2984202073@qq.com> Date: Fri, 4 Jul 2025 14:46:09 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20[Issues:=20#ICISQP]=20=E4=BF=AE?= =?UTF-8?q?=E6=94=B9react-native-crypto-js=E7=A4=BA=E4=BE=8B=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E4=B8=AD=E8=BF=90=E8=A1=8C=E6=8A=A5=E9=94=99=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- en/react-native-crypto-js.md | 12 ------------ zh-cn/react-native-crypto-js.md | 12 ------------ 2 files changed, 24 deletions(-) diff --git a/en/react-native-crypto-js.md b/en/react-native-crypto-js.md index a7d99349..51287a15 100644 --- a/en/react-native-crypto-js.md +++ b/en/react-native-crypto-js.md @@ -49,7 +49,6 @@ import { Alert } from 'react-native'; import CryptoJS from "react-native-crypto-js"; -//import CryptoJS from "rn-crypto-js"; function encrypt_str(text: string) { let ciphertext = CryptoJS.AES.encrypt(text, 'secret key 123').toString(); @@ -82,12 +81,6 @@ function MD5_encrypt_str(text: string) { return ciphertext; } -function HMD5_encrypt_str(text: string) { - let ciphertext = CryptoJS.HmacMD5(text, 'secret key 123').toString(); - Alert.alert('encrypt:', ciphertext, [{ text: 'OK' }]); - return ciphertext; -} - export const ReactNativeCryptoJsExample = () => { const [cryptText, setCryptText] = useState('test 123'); const [cryptText1, setCryptText1] = useState('test123'); @@ -120,11 +113,6 @@ export const ReactNativeCryptoJsExample = () => { ) => setCryptText1(cryptText1)} defaultValue={cryptText1} />