mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-12 11:26:43 +08:00
加密方法升级md5改成 sha256
This commit is contained in:
@@ -8,6 +8,7 @@ import {
|
||||
AESDecrypt,
|
||||
randomString,
|
||||
publicKey,
|
||||
SHA256
|
||||
} from '@/assets/js/utils/cryptoJsUtil'
|
||||
import configApp from '@/config'
|
||||
import { Dialog, Toast } from 'vant'
|
||||
@@ -187,7 +188,7 @@ service.interceptors.request.use(
|
||||
// console.log('MD5值:' + MD5(AESEncrypt(data, masterKey)).toString());
|
||||
// 验证数据完整性MD5
|
||||
// 数据完整性MD5需要进行二次AES加密
|
||||
config.headers['signature'] = MD5(AESEncrypt(data, masterKey)).toString();
|
||||
config.headers['signature'] = SHA256(AESEncrypt(data, masterKey)).toString();
|
||||
if(config.method == 'get'){
|
||||
config.headers['ak'] = ak
|
||||
config.headers['data'] = data
|
||||
|
||||
Reference in New Issue
Block a user