超市页面修改

This commit is contained in:
ctw committed 2025-01-07 13:58:57 +08:00
1 parent 6f9d49f088
commit c966bc423f
19 files changed
+5137 -4140

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
import * as CryptoJS from "crypto-js";
/**
*加密处理
*/
export function encryption(src: string, keyWord: string) {
const key = CryptoJS.enc.Utf8.parse(keyWord);
// 加密
var encrypted = CryptoJS.AES.encrypt(src, key, {
iv: key,
mode: CryptoJS.mode.CFB,
padding: CryptoJS.pad.NoPadding,
});
return encrypted.toString();
}