互动型托管数据对应 key 的数据解密时,偏移量如何获取?

小游戏 企业微信 微信支付 小程序 文章 2020-07-30 20:59 711 0 全屏看文

AI助手支持GPT4.0

互动型托管数据对应 key 的数据解密时,偏移量如何获取?
框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
小游戏 需求 wx.getUserInteractiveStorage(Object object) 微信安卓客户端 7.0.16 2.11.13

wx.getUserInteractiveStorage(Object object) 接口获取到当前用户互动型托管数据对应key的数据,数据是加密的,服务端解密时需要用到对称解密算法初始向量IV,这里的IV前端如何获取呢?使用wx.getUserInfo(Object object)接口吗?重复调用获取会影响数据的解密吗?

Framework type problem type API / component name terminal type wechat version basic library version game requirements wx.getUserInteractiveStorage (object object) wechat Android client 7.0.16 2.11.13 wx.getUserInteractiveStorage (Object object) The interface obtains the key data corresponding to the current user interactive hosting data. The data is encrypted. The server needs to use the initial vector IV of symmetric decryption algorithm when decrypting. How can I get the IV front end here? use wx.getUserInfo (object object) interface? Will repeated calls affect the decryption of data?

回答:

小游戏运营专员-宏:

文档漏了,这个接口也会返回iv

-EOF-

AI助手支持GPT4.0