Kaynağa Gözat

2023年12月25日09:38:55

yxb
wq 1 yıl önce
ebeveyn
işleme
629d0d4e98
2 değiştirilmiş dosya ile 4 ekleme ve 3 silme
  1. 1
    1
      utils/network/request.js
  2. 3
    2
      utils/util/sm4.js

+ 1
- 1
utils/network/request.js Dosyayı Görüntüle

let contentType = 'application/x-www-form-urlencoded' let contentType = 'application/x-www-form-urlencoded'


//判断baseUri是否为空 //判断baseUri是否为空
if (options.baseUrl) {
if (options.baseUrl) {
options.url = options.baseUrl options.url = options.baseUrl
} }
//根据type判断数据传输格式 //根据type判断数据传输格式

+ 3
- 2
utils/util/sm4.js Dosyayı Görüntüle

sm4.encryptData_CBC(''); sm4.encryptData_CBC('');
*/ */
import * as base64js from 'base64-js' import * as base64js from 'base64-js'
console.log('base64js:',base64js)
console.log('base64js:',base64js)



/** /**
* 国密SM4加密算法 * 国密SM4加密算法
0x89, 0x69, 0x97, 0x4a, 0x0c, 0x96, 0x77, 0x7e, 0x65, 0xb9, 0xf1, 0x09, 0xc5, 0x6e, 0xc6, 0x84, 0x89, 0x69, 0x97, 0x4a, 0x0c, 0x96, 0x77, 0x7e, 0x65, 0xb9, 0xf1, 0x09, 0xc5, 0x6e, 0xc6, 0x84,
0x18, 0xf0, 0x7d, 0xec, 0x3a, 0xdc, 0x4d, 0x20, 0x79, 0xee, 0x5f, 0x3e, 0xd7, 0xcb, 0x39, 0x48 0x18, 0xf0, 0x7d, 0xec, 0x3a, 0xdc, 0x4d, 0x20, 0x79, 0xee, 0x5f, 0x3e, 0xd7, 0xcb, 0x39, 0x48
] ]
const FK = [0xa3b1bac6, 0x56aa3350, 0x677d9197, 0xb27022dc] const FK = [0xa3b1bac6, 0x56aa3350, 0x677d9197, 0xb27022dc]


const CK = [0x00070e15, 0x1c232a31, 0x383f464d, 0x545b6269, const CK = [0x00070e15, 0x1c232a31, 0x383f464d, 0x545b6269,

Loading…
İptal
Kaydet