diff --git a/assets/core/common/storage/StorageSecurityCrypto.ts b/assets/core/common/storage/StorageSecurityCrypto.ts index 672bd05..1a10202 100644 --- a/assets/core/common/storage/StorageSecurityCrypto.ts +++ b/assets/core/common/storage/StorageSecurityCrypto.ts @@ -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 {