@relicx_/kernel 1.1.46 → 1.1.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +4 -4
- package/index.js +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -267,7 +267,7 @@ declare class Database extends Module {
|
|
|
267
267
|
}
|
|
268
268
|
declare function CreateDatabase(): boolean;
|
|
269
269
|
|
|
270
|
-
declare function Encrypt(buffer: Buffer, key: string, algorithm: string): Buffer;
|
|
270
|
+
declare function Encrypt(buffer: Buffer, key: string, algorithm: string, randiv?: boolean): Buffer;
|
|
271
271
|
declare function Decrypt(buffer: Buffer, key: string, algorithm: string): Buffer;
|
|
272
272
|
declare function HMACSHA256(sData: string, sKey: string): string;
|
|
273
273
|
declare function HMACSHA1(sData: string): string;
|
|
@@ -305,9 +305,9 @@ declare class GameApplication extends Module {
|
|
|
305
305
|
}
|
|
306
306
|
|
|
307
307
|
declare class EncryptFile {
|
|
308
|
-
static EncryptBuffer(buffer: Buffer, key: string): Buffer
|
|
309
|
-
static DecryptBuffer(buffer: Buffer, key: string): Buffer
|
|
310
|
-
static LoadFile(path: string, key?: string): Buffer
|
|
308
|
+
static EncryptBuffer(buffer: Buffer, key: string): Buffer<ArrayBufferLike>;
|
|
309
|
+
static DecryptBuffer(buffer: Buffer, key: string): Buffer<ArrayBufferLike>;
|
|
310
|
+
static LoadFile(path: string, key?: string): Buffer<ArrayBufferLike>;
|
|
311
311
|
static LoadFileString(path: string): string;
|
|
312
312
|
static LoadFileMD5(path: string): string;
|
|
313
313
|
static SaveFile(path: string, key: string, data: Buffer): void;
|