xypriss-security 2.1.5 → 2.1.6
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/dist/src/core/index.d.ts
CHANGED
|
@@ -18,8 +18,10 @@ export * from "./bridge";
|
|
|
18
18
|
export { XyPrissSecurity as XSec } from "./XyPrissSecurity";
|
|
19
19
|
export { PasswordManager as pm } from "./PasswordManager";
|
|
20
20
|
import { Hash } from "./Hash";
|
|
21
|
+
import { Keys } from "./keys";
|
|
21
22
|
import { Random } from "./Random";
|
|
22
23
|
import { XyPrissSecurity } from "./XyPrissSecurity";
|
|
24
|
+
type cryptoKeysType = typeof Random & typeof Keys;
|
|
23
25
|
/**
|
|
24
26
|
* ### Cipher Class (Compatibility)
|
|
25
27
|
*
|
|
@@ -32,7 +34,7 @@ export declare class Cipher {
|
|
|
32
34
|
/** Cryptographically secure random number and token generation. */
|
|
33
35
|
static readonly random: typeof Random;
|
|
34
36
|
/** Alias for random module. */
|
|
35
|
-
static readonly crypto:
|
|
37
|
+
static readonly crypto: cryptoKeysType;
|
|
36
38
|
/** Framework-level security management and configuration. */
|
|
37
39
|
static readonly XSec: typeof XyPrissSecurity;
|
|
38
40
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;8EAQ8E;AAE9E,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AAEzB,OAAO,EAAE,eAAe,IAAI,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,eAAe,IAAI,EAAE,EAAE,MAAM,mBAAmB,CAAC;AAE1D,OAAO,EAAE,I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js
CHANGED
|
@@ -37,8 +37,27 @@ Object.defineProperty(exports, "XSec", { enumerable: true, get: function () { re
|
|
|
37
37
|
var PasswordManager_1 = require("./PasswordManager"); // Alias for PasswordManager
|
|
38
38
|
Object.defineProperty(exports, "pm", { enumerable: true, get: function () { return PasswordManager_1.PasswordManager; } });
|
|
39
39
|
const Hash_1 = require("./Hash");
|
|
40
|
+
const keys_1 = require("./keys");
|
|
40
41
|
const Random_1 = require("./Random");
|
|
41
42
|
const XyPrissSecurity_2 = require("./XyPrissSecurity");
|
|
43
|
+
function mergeStatic(a, b) {
|
|
44
|
+
const result = Object.create(null);
|
|
45
|
+
// Copie toutes les props de A (énumérables ou non)
|
|
46
|
+
for (const key of Object.getOwnPropertyNames(a)) {
|
|
47
|
+
if (key === "prototype" || key === "length" || key === "name")
|
|
48
|
+
continue;
|
|
49
|
+
const desc = Object.getOwnPropertyDescriptor(a, key);
|
|
50
|
+
Object.defineProperty(result, key, desc);
|
|
51
|
+
}
|
|
52
|
+
// Copie toutes les props de B (B écrase A en cas de conflit)
|
|
53
|
+
for (const key of Object.getOwnPropertyNames(b)) {
|
|
54
|
+
if (key === "prototype" || key === "length" || key === "name")
|
|
55
|
+
continue;
|
|
56
|
+
const desc = Object.getOwnPropertyDescriptor(b, key);
|
|
57
|
+
Object.defineProperty(result, key, desc);
|
|
58
|
+
}
|
|
59
|
+
return result;
|
|
60
|
+
}
|
|
42
61
|
/**
|
|
43
62
|
* ### Cipher Class (Compatibility)
|
|
44
63
|
*
|
|
@@ -53,7 +72,7 @@ Cipher.hash = Hash_1.Hash;
|
|
|
53
72
|
/** Cryptographically secure random number and token generation. */
|
|
54
73
|
Cipher.random = Random_1.Random;
|
|
55
74
|
/** Alias for random module. */
|
|
56
|
-
Cipher.crypto = Random_1.Random;
|
|
75
|
+
Cipher.crypto = mergeStatic(Random_1.Random, keys_1.Keys);
|
|
57
76
|
/** Framework-level security management and configuration. */
|
|
58
77
|
Cipher.XSec = XyPrissSecurity_2.XyPrissSecurity;
|
|
59
78
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;8EAQ8E;;;;;;;;;;;;;;;;;AAE9E,yCAAuB;AACvB,2CAAyB;AACzB,6CAA2B;AAC3B,oDAAkC;AAClC,oDAAkC;AAClC,iDAA+B;AAC/B,yCAAuB;AACvB,2CAAyB;AAEzB,qDAA4D,CAAC,4BAA4B;AAAhF,uGAAA,eAAe,OAAQ;AAChC,qDAA0D,CAAC,4BAA4B;AAA9E,qGAAA,eAAe,OAAM;AAE9B,iCAA8B;AAC9B,qCAAkC;AAClC,uDAAoD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;8EAQ8E;;;;;;;;;;;;;;;;;AAE9E,yCAAuB;AACvB,2CAAyB;AACzB,6CAA2B;AAC3B,oDAAkC;AAClC,oDAAkC;AAClC,iDAA+B;AAC/B,yCAAuB;AACvB,2CAAyB;AAEzB,qDAA4D,CAAC,4BAA4B;AAAhF,uGAAA,eAAe,OAAQ;AAChC,qDAA0D,CAAC,4BAA4B;AAA9E,qGAAA,eAAe,OAAM;AAE9B,iCAA8B;AAC9B,iCAA8B;AAC9B,qCAAkC;AAClC,uDAAoD;AAIpD,SAAS,WAAW,CAAqC,CAAI,EAAE,CAAI;IACjE,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAEnC,mDAAmD;IACnD,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,mBAAmB,CAAC,CAAC,CAAC,EAAE,CAAC;QAChD,IAAI,GAAG,KAAK,WAAW,IAAI,GAAG,KAAK,QAAQ,IAAI,GAAG,KAAK,MAAM;YAAE,SAAS;QACxE,MAAM,IAAI,GAAG,MAAM,CAAC,wBAAwB,CAAC,CAAC,EAAE,GAAG,CAAE,CAAC;QACtD,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;IAC3C,CAAC;IAED,6DAA6D;IAC7D,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,mBAAmB,CAAC,CAAC,CAAC,EAAE,CAAC;QAChD,IAAI,GAAG,KAAK,WAAW,IAAI,GAAG,KAAK,QAAQ,IAAI,GAAG,KAAK,MAAM;YAAE,SAAS;QACxE,MAAM,IAAI,GAAG,MAAM,CAAC,wBAAwB,CAAC,CAAC,EAAE,GAAG,CAAE,CAAC;QACtD,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;IAC3C,CAAC;IAED,OAAO,MAAe,CAAC;AACzB,CAAC;AAED;;;;;GAKG;AACH,MAAa,MAAM;;AAAnB,wBASC;AARC,oDAAoD;AAC7B,WAAI,GAAG,WAAI,CAAC;AACnC,mEAAmE;AAC5C,aAAM,GAAG,eAAM,CAAC;AACvC,+BAA+B;AACR,aAAM,GAAmB,WAAW,CAAC,eAAM,EAAE,WAAI,CAAC,CAAC;AAC1E,6DAA6D;AACtC,WAAI,GAAG,iCAAe,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xypriss-security",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.6",
|
|
4
4
|
"description": "Advanced High-Performance Security Framework powered by a Go Core. Military-grade encryption, post-quantum resilience, and fortified data structures.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "NEHONIX",
|