ggez-banking-sdk 0.1.152 → 0.1.153
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.
|
@@ -4,7 +4,7 @@ declare class CipherHelper {
|
|
|
4
4
|
static Decrypt: (cipherText: string, key: string, iv: string) => string;
|
|
5
5
|
static Generate: (code: string) => CipherKeyIV;
|
|
6
6
|
static GenerateByUSRAndIID: (USR: USR, IID: string) => CipherKeyIV;
|
|
7
|
-
static GenerateByProgramID: (programId:
|
|
7
|
+
static GenerateByProgramID: (programId: string) => CipherKeyIV;
|
|
8
8
|
static GenerateByUserID: (user_id: string) => CipherKeyIV;
|
|
9
9
|
static GenerateByInstallationID: (IID: string) => CipherKeyIV;
|
|
10
10
|
static PaddingLeft: (value: string, length: number, paddingChar: string) => string;
|
|
@@ -71,11 +71,11 @@ class CipherHelper {
|
|
|
71
71
|
if (!programId) {
|
|
72
72
|
throw new Error("Program ID is not defined");
|
|
73
73
|
}
|
|
74
|
-
const PID_KEY = this.PaddingLeft(programId
|
|
74
|
+
const PID_KEY = this.PaddingLeft(programId, 10, "0");
|
|
75
75
|
const F_KEY = this.PaddingLeft("0".toString(), 10, "0");
|
|
76
76
|
const FingerPrint_KEY = this.PaddingLeft("", 10, "0");
|
|
77
77
|
const KEY = `${PID_KEY}.${F_KEY}.${FingerPrint_KEY}`;
|
|
78
|
-
const PID_IV = this.PaddingLeft(programId
|
|
78
|
+
const PID_IV = this.PaddingLeft(programId, 8, "0");
|
|
79
79
|
const F_IV = this.PaddingLeft("0".toString(), 8, "0");
|
|
80
80
|
const IV = `${PID_IV}${F_IV}`;
|
|
81
81
|
return { key: KEY, iv: IV };
|
|
@@ -2,7 +2,7 @@ import { UserData, USR } from "../types";
|
|
|
2
2
|
declare class CookiesHelper {
|
|
3
3
|
private domain;
|
|
4
4
|
private programId;
|
|
5
|
-
constructor(programId:
|
|
5
|
+
constructor(programId: string, domain: string);
|
|
6
6
|
GetIID(): any;
|
|
7
7
|
SetIID(): void;
|
|
8
8
|
ValidateIID(IID: string): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ggez-banking-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.153",
|
|
4
4
|
"description": "A Node.js package to handle GGEZ Banking API endpoints, Simplify the process of managing CRUD operations with this efficient and easy-to-use package.",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|