sen
2025-09-28 071ebf36aed1e7ab65f4afc0f378b0df0fc50313
1
2
3
4
5
6
7
8
9
10
import {sm4} from "sm-crypto";
 
const KEY = "0123456789abcdeffedcba9876543210"
 
export const encryptSm4 = (data:string)=>{
   return  sm4.encrypt(data,KEY)
}
export const decryptSm4 = (data:string)=>{
    return  sm4.decrypt(data,KEY)
}