mirror of
https://gitee.com/dgflash/oops-plugin-framework.git
synced 2026-05-13 00:47:33 +08:00
优化本地存储加密代码
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user