小程序提供的sm4对json字符串加密返回空数组[]?
var sm4Encode = miniprogramSmCrypto.sm4.encrypt("{'a':1}", key, {padding: 'none', output: 'array'})
var result = miniprogramSmCrypto.sm4.decrypt(sm4Encode, key, {padding: 'none'})
console.log(sm4Encode); //结果为空数组 []
console.log(result ); //结果为空
1 回复