diff --git a/en/react-native-crypto-js.md b/en/react-native-crypto-js.md index a7d99349e1164fe0b22963bd7931f65f1d52caee..51287a15ade37be995dd45de5c5b7909a78ac373 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} />