소스 검색

优化sm4

ms
zhoujie 1 년 전
부모
커밋
3d6017c962
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2
    2
      utils/util/sm4.js

+ 2
- 2
utils/util/sm4.js 파일 보기

@@ -589,7 +589,7 @@ export function SM4Util() {
let decrypted = sm4.sm4_crypt_cbc(
ctx,
ivBytes,
base64js.toByteArray(cipherText)
base64js.toByteArray(cipherText.data.bizContent)
)
let bizContent = utf8ByteToUnicodeStr(decrypted)
let begin = bizContent.indexOf('[')
@@ -598,7 +598,7 @@ export function SM4Util() {
begin = bizContent.indexOf('{')
end = bizContent.lastIndexOf('}')
}
cipherText = bizContent.substring(begin, end + 1) || bizContent
cipherText.data.bizContent = bizContent.substring(begin, end + 1) || bizContent
return cipherText
} catch (e) {
console.error(e)

Loading…
취소
저장