// import { oops } from "../../Oops"; // import { EncryptUtil } from "../../utils/EncryptUtil"; // import { IStorageSecurity } from "./StorageManager"; // /** // * 本地存储加密 // * 优点: // * 1、加密强度更高 // * // * 缺点: // * 1、整体代码体积增加约200KB // * 2、需要下载 CryptoES 加密库 // */ // export class StorageSecurityCrypto implements IStorageSecurity { // private _key: string = null!; // private _iv: string = null!; // constructor() { // const key = oops.config.game.localDataKey; // const iv = oops.config.game.localDataIv; // EncryptUtil.initCrypto(key, iv); // this._key = EncryptUtil.md5(key); // this._iv = EncryptUtil.md5(iv); // } // decrypt(str: string): string { // return EncryptUtil.aesDecrypt(str, this._key, this._iv); // } // encrypt(str: string): string { // return EncryptUtil.aesEncrypt(str, this._key, this._iv); // } // encryptKey(str: string): string { // return EncryptUtil.md5(str); // } // } System.register(["cc"], function (_export, _context) { "use strict"; var _cclegacy, _crd; return { setters: [function (_cc) { _cclegacy = _cc.cclegacy; }], execute: function () { _crd = true; _cclegacy._RF.push({}, "fbbbdioMCNOmI7KMEU46FfN", "StorageSecurityCrypto", undefined); _cclegacy._RF.pop(); _crd = false; } }; }); //# sourceMappingURL=c3a10e6f916e4c0ef0aaddd9bedd9c611fbfeac7.js.map