harmonyOS API9 接入 加密库 Crypto
2024-04-07 本文已影响0人
冰点雨
开发环境 API9。
安装
ohpm install @ohos/crypto-js
使用
import CryptoJS from '@ohos/crypto-js'
var hash = CryptoJS.MD5("123456")
console.log('xxxx md5 is ' + hash)
开发环境 API9。
安装
ohpm install @ohos/crypto-js
使用
import CryptoJS from '@ohos/crypto-js'
var hash = CryptoJS.MD5("123456")
console.log('xxxx md5 is ' + hash)