# decodeAES128 ^7.10

AES128解密

# 请求参数

Prop Type Default Comment
decode String N/A 待解密的密文
key String N/A AES128密钥,选传参数,如果不传则取原生的密钥

# 接口调用示例

const params = {
    "decode": "待解密的密文",
    "key": "127"
}
this.$bridge
  .decodeAES128(params)
  .then(res => {
    this.$alert(res)
  })
  .catch(err => {
    this.$toast(err)
  })

1
2
3
4
5
6
7
8
9
10
11
12
13

# 接口返回示例


//成功出参:
{
  code:0, 
  msg:'解密成功',
  data:'xxx'//被解密的明文
}
// 失败出参:
{
  code:-101, // code:-101参数为空, code:-102解密失败,明文为空
  msg:'参数错误'
}

1
2
3
4
5
6
7
8
9
10
11
12
13
更新时间: 7/27/2021, 11:23:45 AM