Explorar el Código

2023年12月25日09:38:55

yxb
wq hace 1 año
padre
commit
629d0d4e98
Se han modificado 2 ficheros con 4 adiciones y 3 borrados
  1. 1
    1
      utils/network/request.js
  2. 3
    2
      utils/util/sm4.js

+ 1
- 1
utils/network/request.js Ver fichero

@@ -63,7 +63,7 @@ export function request(code, options = {}, start = false) {
let contentType = 'application/x-www-form-urlencoded'

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

+ 3
- 2
utils/util/sm4.js Ver fichero

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


/**
* 国密SM4加密算法
@@ -49,7 +50,7 @@ function SM4() {
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
]
const FK = [0xa3b1bac6, 0x56aa3350, 0x677d9197, 0xb27022dc]

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

Cargando…
Cancelar
Guardar