| | |
| | | // const privateKey = uni.getStorageSync('aes_private_key') |
| | | |
| | | export function decryptedData (msg, data) { |
| | | console.log(msg) |
| | | console.log(data) |
| | | // console.log(msg) |
| | | // console.log(data) |
| | | // 变换key:将当月位数字符串去除,然后倒序 |
| | | const monthIndex = new Date().getMonth() + 1 |
| | | const msgStr = msg.slice(0, monthIndex) + msg.slice(monthIndex + 1) |
| | | const reverseMsgStr = msgStr.split('').reverse().join('') |
| | | const str1 = data.replace(/\s/g, '') |
| | | console.log(reverseMsgStr) |
| | | console.log(str1) |
| | | // console.log(reverseMsgStr) |
| | | // console.log(str1) |
| | | // 解密并返回结果 |
| | | return ( |
| | | JSON.parse( |