sen
2025-09-09 0bbc87f96f249f8c86dc8960e295891b3d9837e2
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)
}