优化本地存储加密代码

This commit is contained in:
dgflash
2025-09-28 11:52:27 +08:00
parent a782dbd14a
commit 359c075737

View File

@@ -1,4 +1,3 @@
// import { oops } from "../../Oops";
// import { EncryptUtil } from "../../utils/EncryptUtil";
// import { IStorageSecurity } from "./StorageManager";
@@ -12,12 +11,13 @@
// * 2、需要下载 CryptoES 加密库
// */
// export class StorageSecurityCrypto implements IStorageSecurity {
// constructor() {
// let key = oops.config.game.localDataKey;
// let iv = oops.config.game.localDataIv;
// key = EncryptUtil.md5(key);
// iv = EncryptUtil.md5(iv);
// EncryptUtil.initCrypto(key, iv);
// key: string = null!;
// iv: string = null!;
// init() {
// this.key = EncryptUtil.md5(this.key);
// this.iv = EncryptUtil.md5(this.iv);
// EncryptUtil.initCrypto(this.key, this.iv);
// }
// decrypt(str: string): string {