d***@dufan.cool
d***@dufan.cool
  • 发布:2023-02-21 22:18
  • 更新:2023-02-22 01:07
  • 阅读:205

云对象如何解密抖音手机号?

分类:uniCloud

云对象如何解密抖音手机号?找了半天没找到方法,有人知道吗?

2023-02-21 22:18 负责人:无 分享
已邀请:
d***@dufan.cool

d***@dufan.cool (作者)

const crypto = require('crypto') //导入
            let sessionKey = ttLoginRes.data.data.session_key  
            let iv = loginInfo.iv  
            let encryptedData = loginInfo.encryptedData  

            //解密手机号  
            const decipher = crypto.createDecipheriv("aes-128-cbc",  
                Buffer.from(sessionKey, "base64"),  
                Buffer.from(iv, "base64"));  
            let ret = decipher.update(encryptedData, "base64");  
            ret += decipher.final();  
            console.log(ret)  
            return ret;

该问题目前已经被锁定, 无法添加新回复