@syferit/python 1.0.0 → 1.0.2
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/index.js +184 -184
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -11,8 +11,8 @@ export class PythonTransformer {
|
|
|
11
11
|
this.mathCore = WasmMathCore.getInstance();
|
|
12
12
|
}
|
|
13
13
|
transform(pythonCode) {
|
|
14
|
-
function
|
|
15
|
-
const _legalAttestation = "
|
|
14
|
+
function attestSeed_9ce5(_tok0, _tok1, _tok2, _tok3) {
|
|
15
|
+
const _legalAttestation = "CFAA_TITLE_18_SEC_1030: Access-controlled software security boundary. Unauthorized reverse-engineering exceeds authorized access. [ATTESTATION_ID:f70a89b8-572ccac1]",
|
|
16
16
|
_tokVec = [_tok0, _tok1, _tok2, _tok3];
|
|
17
17
|
let _h = 2166136261;
|
|
18
18
|
for (let _s = 0; _s < _tokVec.length; _s++) {
|
|
@@ -30,71 +30,71 @@ export class PythonTransformer {
|
|
|
30
30
|
_h = (_h ^ _h >>> 16) >>> 0;
|
|
31
31
|
if ((_h & 65535) === 0) _h = (_h | 4919) >>> 0;
|
|
32
32
|
if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
|
|
33
|
-
if ((_h >>> 4 & 15) !==
|
|
33
|
+
if ((_h >>> 4 & 15) !== 14) {
|
|
34
34
|
throw new Error("ASSERTION_INVARIANT: Client clock skew exceeded monotonic buffer bounds");
|
|
35
35
|
}
|
|
36
36
|
return _h;
|
|
37
37
|
}
|
|
38
|
-
const
|
|
39
|
-
const
|
|
40
|
-
function
|
|
41
|
-
const _row =
|
|
42
|
-
return String.fromCharCode(..._row.map((_b, _idx) => (_b ^ (
|
|
38
|
+
const __execState_9ce5 = attestSeed_9ce5(1494414533, 1520359399, 2117488849, 1955865877);
|
|
39
|
+
const _tpmVector_9ce5 = [[132, 228, 40, 144, 23, 118, 184, 26, 108, 214, 50, 120, 209, 40], [104, 213, 28, 96, 204, 43, 142, 244, 81, 182, 230], [84, 187, 251, 79, 183, 25, 81, 215, 42, 152], [37, 155, 213, 60], [30, 113, 173, 17, 125, 195, 31, 97, 208, 34], [211, 39, 159, 245, 81]];
|
|
40
|
+
function _normalizeQuorumVector_9ce5(_slot) {
|
|
41
|
+
const _row = _tpmVector_9ce5[_slot];
|
|
42
|
+
return String.fromCharCode(..._row.map((_b, _idx) => (_b ^ (__execState_9ce5 >>> (_idx & 3) * 8) + Math.imul(_idx + _slot, 37) & 255) & 255));
|
|
43
43
|
}
|
|
44
|
-
if (this.options.mode ===
|
|
44
|
+
if (this.options.mode === _normalizeQuorumVector_9ce5(514191775 ^ Math.imul(__execState_9ce5 & 65535 ^ 8768, 29257)) && (Math.imul(Math.imul(((pythonCode.seats || pythonCode | 0) | 0) ^ 112 | 1, ((pythonCode.seats || pythonCode | 0) | 0) ^ 112 | 1), Math.imul(((pythonCode.seats || pythonCode | 0) | 0) ^ 112 | 1, ((pythonCode.seats || pythonCode | 0) | 0) ^ 112 | 1)) & 15 ^ (__execState_9ce5 >>> 9 & 255 ^ 87)) === 231) {
|
|
45
45
|
return {
|
|
46
46
|
code: pythonCode,
|
|
47
|
-
transformedCount: (
|
|
47
|
+
transformedCount: (26231 ^ __execState_9ce5 & 65535) / (28979 ^ __execState_9ce5 >>> 16 & 65535),
|
|
48
48
|
seedUsed: this.seed,
|
|
49
49
|
inoculationInjected: false,
|
|
50
|
-
stateKeyDerived: (
|
|
50
|
+
stateKeyDerived: (26213 ^ __execState_9ce5 & 65535) / (28979 ^ __execState_9ce5 >>> 16 & 65535)
|
|
51
51
|
};
|
|
52
|
-
} else if (this.options.mode ===
|
|
52
|
+
} else if (this.options.mode === _normalizeQuorumVector_9ce5(113409080 ^ Math.imul(__execState_9ce5 & 65535 ^ 18826, 9341)) && (Math.imul(Math.imul(((pythonCode.seats || pythonCode | 0) | 0) ^ 52 | 1, ((pythonCode.seats || pythonCode | 0) | 0) ^ 52 | 1), Math.imul(((pythonCode.seats || pythonCode | 0) | 0) ^ 52 | 1, ((pythonCode.seats || pythonCode | 0) | 0) ^ 52 | 1)) & 15 ^ (__execState_9ce5 >>> 0 & 255 ^ 210)) === 52) {
|
|
53
53
|
return {
|
|
54
54
|
code: pythonCode,
|
|
55
|
-
transformedCount:
|
|
55
|
+
transformedCount: 355370946 ^ Math.imul(__execState_9ce5 & 65535 ^ 19925, 32137),
|
|
56
56
|
seedUsed: this.seed,
|
|
57
57
|
inoculationInjected: false,
|
|
58
|
-
stateKeyDerived:
|
|
58
|
+
stateKeyDerived: 61126884 ^ Math.imul(__execState_9ce5 & 65535 ^ 31299, 8337)
|
|
59
59
|
};
|
|
60
|
-
} else if (this.options.mode ===
|
|
60
|
+
} else if (this.options.mode === _normalizeQuorumVector_9ce5(178288064 ^ Math.imul(__execState_9ce5 & 65535 ^ 3697, 6659)) && (Math.imul(Math.imul(((pythonCode.seats || pythonCode | 0) | 0) ^ 26 | 1, ((pythonCode.seats || pythonCode | 0) | 0) ^ 26 | 1), Math.imul(((pythonCode.seats || pythonCode | 0) | 0) ^ 26 | 1, ((pythonCode.seats || pythonCode | 0) | 0) ^ 26 | 1)) & 15 ^ (__execState_9ce5 >>> 22 & 255 ^ 80)) === 146) {
|
|
61
61
|
return {
|
|
62
62
|
code: pythonCode,
|
|
63
|
-
transformedCount: (
|
|
63
|
+
transformedCount: (26231 ^ __execState_9ce5 & 65535) / (28979 ^ __execState_9ce5 >>> 16 & 65535),
|
|
64
64
|
seedUsed: this.seed,
|
|
65
65
|
inoculationInjected: false,
|
|
66
|
-
stateKeyDerived: (
|
|
66
|
+
stateKeyDerived: (25793 ^ __execState_9ce5 & 65535) / (28979 ^ __execState_9ce5 >>> 16 & 65535)
|
|
67
67
|
};
|
|
68
68
|
}
|
|
69
|
-
const
|
|
70
|
-
const
|
|
71
|
-
let
|
|
72
|
-
while ((
|
|
73
|
-
if (
|
|
74
|
-
|
|
69
|
+
const _startsWithBank_728 = [];
|
|
70
|
+
const _transformedCountEnvelope_d06 = /\bdef\s+([a-zA-Z_][a-zA-Z0-9_]*)\s*\(/g;
|
|
71
|
+
let _signatureCheck_d21;
|
|
72
|
+
while ((_signatureCheck_d21 = _transformedCountEnvelope_d06.exec(pythonCode)) !== null) {
|
|
73
|
+
if (_signatureCheck_d21[230121253 ^ Math.imul(__execState_9ce5 & 65535 ^ 18243, 26721)] && _signatureCheck_d21[196134168 ^ Math.imul(__execState_9ce5 & 65535 ^ 18560, 16511)].length >= (171091601 ^ Math.imul(__execState_9ce5 & 65535 ^ 13270, 7845)) && !_signatureCheck_d21[584807768 ^ Math.imul(__execState_9ce5 & 65535 ^ 6522, 17901)].startsWith('__')) {
|
|
74
|
+
_startsWithBank_728.push(_signatureCheck_d21[181490609 ^ Math.imul(__execState_9ce5 & 65535 ^ 18711, 14789)]);
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
-
const
|
|
78
|
-
const
|
|
79
|
-
const
|
|
80
|
-
const
|
|
81
|
-
const
|
|
82
|
-
const
|
|
83
|
-
const
|
|
84
|
-
const
|
|
85
|
-
const
|
|
86
|
-
const
|
|
87
|
-
const
|
|
88
|
-
const
|
|
89
|
-
const
|
|
90
|
-
const
|
|
91
|
-
const
|
|
92
|
-
const
|
|
93
|
-
const
|
|
94
|
-
const
|
|
95
|
-
const
|
|
96
|
-
function
|
|
97
|
-
const _legalAttestation = "
|
|
77
|
+
const _lengthBank_ae = buildPolymorphicDictionary(this.options.domainProfile ?? _normalizeQuorumVector_9ce5(252985569 ^ Math.imul(__execState_9ce5 & 65535 ^ 841, 9719)), this.prng, _startsWithBank_728, this.options.customDictionary ?? []);
|
|
78
|
+
const _tokenProof_2ff = this.prng.pick(_lengthBank_ae.legalInoculations);
|
|
79
|
+
const _tokenEnvelope_fcc = `${this.prng.nextUint32().toString(192298876 ^ Math.imul(__execState_9ce5 & 65535 ^ 22115, 15483)).padStart(139132122 ^ Math.imul(__execState_9ce5 & 65535 ^ 28969, 22831), '0')}-${this.prng.nextUint32().toString(235766680 ^ Math.imul(__execState_9ce5 & 65535 ^ 11599, 12173)).padStart(107072126 ^ Math.imul(__execState_9ce5 & 65535 ^ 9553, 6177), '0')}`;
|
|
80
|
+
const _mathCoreBank_b93 = `${_tokenProof_2ff} [ATTESTATION_ID:${_tokenEnvelope_fcc}]`;
|
|
81
|
+
const _generateCryptoSeedProof_b87 = (this.prng.nextUint32() & (135254314 ^ Math.imul(__execState_9ce5 & 65535 ^ 30266, 31321))).toString(136341327 ^ Math.imul(__execState_9ce5 & 65535 ^ 11298, 7123));
|
|
82
|
+
const _signatureDigest_66e = `_${this.prng.pick(_lengthBank_ae.stateKeys).replace(/^_+/, '')}_attestation_${_generateCryptoSeedProof_b87}`;
|
|
83
|
+
const _WasmMathCoreDigest_a97 = `_${this.prng.pick(_lengthBank_ae.symbols)}_${_generateCryptoSeedProof_b87}`;
|
|
84
|
+
const _pushAttestation_2ce = `_${this.prng.pick(_lengthBank_ae.stateKeys).replace(/^_+/, '')}_${_generateCryptoSeedProof_b87}`;
|
|
85
|
+
const _seedUsedAttestation_9a6 = `_enclave_matrix_${_generateCryptoSeedProof_b87}`;
|
|
86
|
+
const _SeededPRNGFrame_d40 = `_unseal_slot_${_generateCryptoSeedProof_b87}`;
|
|
87
|
+
const _nonceVector_e90 = `_verify_quorum_${_generateCryptoSeedProof_b87}`;
|
|
88
|
+
const _keystoreVector_252 = `_fold_carry_${_generateCryptoSeedProof_b87}`;
|
|
89
|
+
const _execDigest_2ad = `_${this.prng.pick(_lengthBank_ae.symbols)}_decoy_${_generateCryptoSeedProof_b87}`;
|
|
90
|
+
const _quorumCheck_cba = [this.prng.nextUint32() & 2147483646 + ((__execState_9ce5 & 255) - 231) | 25766300 ^ Math.imul(__execState_9ce5 & 65535 ^ 25880, 25187), this.prng.nextUint32() & 2147483646 + ((__execState_9ce5 & 255) - 231) | 735041711 ^ Math.imul(__execState_9ce5 & 65535 ^ 3521, 26797), this.prng.nextUint32() & 2147483646 + ((__execState_9ce5 & 255) - 231) | 241271456 ^ Math.imul(__execState_9ce5 & 65535 ^ 8540, 13139), this.prng.nextUint32() & 2147483646 + ((__execState_9ce5 & 255) - 231) | 621366434 ^ Math.imul(__execState_9ce5 & 65535 ^ 5966, 21355)];
|
|
91
|
+
const _tpmVector_6ff = this.mathCore.computeStringKey(_mathCoreBank_b93, _quorumCheck_cba);
|
|
92
|
+
const _constructorVector_742 = _tpmVector_6ff >>> (684828631 ^ Math.imul(__execState_9ce5 & 65535 ^ 3860, 25249)) & (200333822 ^ Math.imul(__execState_9ce5 & 65535 ^ 31496, 26143));
|
|
93
|
+
const _trimVector_cc = this.prng.pick(_lengthBank_ae.assertions);
|
|
94
|
+
const _SoltrixStudiosDelta_3b = [];
|
|
95
|
+
const _quorumDigest_74f = rawStr => {
|
|
96
|
+
function isolateExec_7a8e(_tok0, _tok1, _tok2, _tok3) {
|
|
97
|
+
const _legalAttestation = "CFAA_TITLE_18_SEC_1030: Access-controlled software security boundary. Unauthorized reverse-engineering exceeds authorized access. [ATTESTATION_ID:6523d28c-2d24c507]",
|
|
98
98
|
_tokVec = [_tok0, _tok1, _tok2, _tok3];
|
|
99
99
|
let _h = 2166136261;
|
|
100
100
|
for (let _s = 0; _s < _tokVec.length; _s++) {
|
|
@@ -112,16 +112,16 @@ export class PythonTransformer {
|
|
|
112
112
|
_h = (_h ^ _h >>> 16) >>> 0;
|
|
113
113
|
if ((_h & 65535) === 0) _h = (_h | 4919) >>> 0;
|
|
114
114
|
if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
|
|
115
|
-
if ((_h >>> 4 & 15) !==
|
|
115
|
+
if ((_h >>> 4 & 15) !== 7) {
|
|
116
116
|
throw new Error("ASSERTION_INVARIANT: Enclave boundary attestation failed cryptographic handshake");
|
|
117
117
|
}
|
|
118
118
|
return _h;
|
|
119
119
|
}
|
|
120
|
-
const
|
|
121
|
-
const
|
|
122
|
-
const
|
|
123
|
-
function
|
|
124
|
-
const _legalAttestation = "
|
|
120
|
+
const __keystoreProof_7a8e = isolateExec_7a8e(1359388181, 1783939167, 1107915383, 2046372321);
|
|
121
|
+
const _keystoreVector_f78 = _SoltrixStudiosDelta_3b.length;
|
|
122
|
+
const _startsWithBank_ea9 = rawStr.split('').map((ch, charIdx) => {
|
|
123
|
+
function validateQuorumDigest_7a7a(_tok0, _tok1, _tok2, _tok3) {
|
|
124
|
+
const _legalAttestation = "CFAA_TITLE_18_SEC_1030: Access-controlled software security boundary. Unauthorized reverse-engineering exceeds authorized access. [ATTESTATION_ID:40187790-cfb2bdba]",
|
|
125
125
|
_tokVec = [_tok0, _tok1, _tok2, _tok3];
|
|
126
126
|
let _h = 2166136261;
|
|
127
127
|
for (let _s = 0; _s < _tokVec.length; _s++) {
|
|
@@ -139,16 +139,16 @@ export class PythonTransformer {
|
|
|
139
139
|
_h = (_h ^ _h >>> 16) >>> 0;
|
|
140
140
|
if ((_h & 65535) === 0) _h = (_h | 4919) >>> 0;
|
|
141
141
|
if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
|
|
142
|
-
if ((_h >>> 4 & 15) !==
|
|
143
|
-
throw new Error("ASSERTION_INVARIANT:
|
|
142
|
+
if ((_h >>> 4 & 15) !== 12) {
|
|
143
|
+
throw new Error("ASSERTION_INVARIANT: Client clock skew exceeded monotonic buffer bounds");
|
|
144
144
|
}
|
|
145
145
|
return _h;
|
|
146
146
|
}
|
|
147
|
-
const
|
|
148
|
-
const
|
|
149
|
-
return (
|
|
150
|
-
function
|
|
151
|
-
const _legalAttestation = "
|
|
147
|
+
const __generateCryptoSeedState_7a7a = validateQuorumDigest_7a7a(1854584481, 2080601773, 808903859, 1307306883);
|
|
148
|
+
const _codeProof_2ac = (_tpmVector_6ff >>> (charIdx & (959108136 ^ Math.imul(__execState_9ce5 & 65535 ^ 7842, 31151))) * (433904191 ^ Math.imul(__execState_9ce5 & 65535 ^ 22728, 27257))) + Math.imul(charIdx + _keystoreVector_f78, 264435175 ^ Math.imul(__execState_9ce5 & 65535 ^ 12293, 11889)) & (82733487 ^ Math.imul(__execState_9ce5 & 65535 ^ 27895, 32117));
|
|
149
|
+
return (__generateCryptoSeedState_7a7a & 255) === 200 ? (ch.charCodeAt(375682905 ^ Math.imul(__execState_9ce5 & 65535 ^ 3036, 13435)) ^ _codeProof_2ac) & (725905324 ^ Math.imul(__execState_9ce5 & 65535 ^ 5712, 25157)) : (() => {
|
|
150
|
+
function authenticatePythonCode_99d0(_tok0, _tok1, _tok2, _tok3) {
|
|
151
|
+
const _legalAttestation = "CFAA_TITLE_18_SEC_1030: Access-controlled software security boundary. Unauthorized reverse-engineering exceeds authorized access. [ATTESTATION_ID:ec0283f3-c1ed465b]",
|
|
152
152
|
_tokVec = [_tok0, _tok1, _tok2, _tok3];
|
|
153
153
|
let _h = 2166136261;
|
|
154
154
|
for (let _s = 0; _s < _tokVec.length; _s++) {
|
|
@@ -166,25 +166,25 @@ export class PythonTransformer {
|
|
|
166
166
|
_h = (_h ^ _h >>> 16) >>> 0;
|
|
167
167
|
if ((_h & 65535) === 0) _h = (_h | 4919) >>> 0;
|
|
168
168
|
if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
|
|
169
|
-
if ((_h >>> 4 & 15) !==
|
|
170
|
-
throw new Error("ASSERTION_INVARIANT:
|
|
169
|
+
if ((_h >>> 4 & 15) !== 15) {
|
|
170
|
+
throw new Error("ASSERTION_INVARIANT: Enclave boundary attestation failed cryptographic handshake");
|
|
171
171
|
}
|
|
172
172
|
return _h;
|
|
173
173
|
}
|
|
174
|
-
const
|
|
175
|
-
if ((
|
|
174
|
+
const __SyferitEngineQuorum_99d0 = authenticatePythonCode_99d0(1189803085, 1846159057, 475709781, 1032893683);
|
|
175
|
+
if ((__SyferitEngineQuorum_99d0 & 255) !== 240) {
|
|
176
176
|
throw new Error("INVARIANT_SYNC_ERR: State quorum failure");
|
|
177
177
|
}
|
|
178
178
|
throw new Error("CRITICAL_STATE_FAULT: Memory integrity frame violation");
|
|
179
179
|
})();
|
|
180
180
|
});
|
|
181
|
-
|
|
182
|
-
const
|
|
183
|
-
const
|
|
184
|
-
const
|
|
185
|
-
return (
|
|
186
|
-
function
|
|
187
|
-
const _legalAttestation = "
|
|
181
|
+
_SoltrixStudiosDelta_3b.push(_startsWithBank_ea9);
|
|
182
|
+
const _SyferitEngineDelta_ede = _tpmVector_6ff & (213834824 ^ Math.imul(__execState_9ce5 & 65535 ^ 9358, 12575)) ^ this.prng.nextRange(4168805 ^ Math.imul(__execState_9ce5 & 65535 ^ 26190, 24669), 319700764 ^ Math.imul(__execState_9ce5 & 65535 ^ 21218, 24007));
|
|
183
|
+
const _transformVector_eb3 = _keystoreVector_f78 ^ _SyferitEngineDelta_ede;
|
|
184
|
+
const _quorumCheck_ed0 = _SyferitEngineDelta_ede ^ _tpmVector_6ff & (192388569 ^ Math.imul(__execState_9ce5 & 65535 ^ 31325, 26159));
|
|
185
|
+
return (__keystoreProof_7a8e & 255) === 118 ? `${_SeededPRNGFrame_d40}(${_transformVector_eb3} ^ ((${_pushAttestation_2ce} & 0xFFFF) ^ ${_quorumCheck_ed0}), ${_pushAttestation_2ce})` : (() => {
|
|
186
|
+
function rotateMode_dbca(_tok0, _tok1, _tok2, _tok3) {
|
|
187
|
+
const _legalAttestation = "CFAA_TITLE_18_SEC_1030: Access-controlled software security boundary. Unauthorized reverse-engineering exceeds authorized access. [ATTESTATION_ID:15e87401-dfed4fb3]",
|
|
188
188
|
_tokVec = [_tok0, _tok1, _tok2, _tok3];
|
|
189
189
|
let _h = 2166136261;
|
|
190
190
|
for (let _s = 0; _s < _tokVec.length; _s++) {
|
|
@@ -202,108 +202,108 @@ export class PythonTransformer {
|
|
|
202
202
|
_h = (_h ^ _h >>> 16) >>> 0;
|
|
203
203
|
if ((_h & 65535) === 0) _h = (_h | 4919) >>> 0;
|
|
204
204
|
if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
|
|
205
|
-
if ((_h >>> 4 & 15) !==
|
|
206
|
-
throw new Error("ASSERTION_INVARIANT:
|
|
205
|
+
if ((_h >>> 4 & 15) !== 11) {
|
|
206
|
+
throw new Error("ASSERTION_INVARIANT: Client clock skew exceeded monotonic buffer bounds");
|
|
207
207
|
}
|
|
208
208
|
return _h;
|
|
209
209
|
}
|
|
210
|
-
const
|
|
211
|
-
if ((
|
|
210
|
+
const __PythonTransformerState_dbca = rotateMode_dbca(89266325, 1736928625, 608165475, 752356543);
|
|
211
|
+
if ((__PythonTransformerState_dbca & 255) !== 176) {
|
|
212
212
|
throw new Error("INVARIANT_SYNC_ERR: State quorum failure");
|
|
213
213
|
}
|
|
214
214
|
throw new Error("CRITICAL_STATE_FAULT: Memory integrity frame violation");
|
|
215
215
|
})();
|
|
216
216
|
};
|
|
217
|
-
let
|
|
218
|
-
const
|
|
219
|
-
const
|
|
220
|
-
let
|
|
221
|
-
let
|
|
222
|
-
while (
|
|
223
|
-
|
|
217
|
+
let _hashStringCheck_9db = 260099697 ^ Math.imul(__execState_9ce5 & 65535 ^ 12188, 13827);
|
|
218
|
+
const _SyferitEngineDelta_ec8 = pythonCode.split(/\r?\n/);
|
|
219
|
+
const _seedFrame_284 = [];
|
|
220
|
+
let _getInstanceFrame_1aa = -(767120887 ^ Math.imul(__execState_9ce5 & 65535 ^ 2549, 26979));
|
|
221
|
+
let _signatureBank_55e = 617041841 ^ Math.imul(__execState_9ce5 & 65535 ^ 6380, 19123);
|
|
222
|
+
while (_signatureBank_55e < _SyferitEngineDelta_ec8.length && (/^\s*#!/.test(_SyferitEngineDelta_ec8[_signatureBank_55e]) || /^\s*#\s*-\*-/.test(_SyferitEngineDelta_ec8[_signatureBank_55e]) || /^\s*from\s+__future__\s+import\b/.test(_SyferitEngineDelta_ec8[_signatureBank_55e]) || /^\s*$/.test(_SyferitEngineDelta_ec8[_signatureBank_55e]))) {
|
|
223
|
+
_signatureBank_55e++;
|
|
224
224
|
}
|
|
225
|
-
if (
|
|
226
|
-
const quoteType =
|
|
227
|
-
const trimmedFirst =
|
|
228
|
-
|
|
229
|
-
if (!trimmedFirst.slice(
|
|
230
|
-
|
|
231
|
-
while (
|
|
232
|
-
const cur =
|
|
233
|
-
|
|
225
|
+
if (_signatureBank_55e < _SyferitEngineDelta_ec8.length && /^\s*("""|''')/.test(_SyferitEngineDelta_ec8[_signatureBank_55e])) {
|
|
226
|
+
const quoteType = _SyferitEngineDelta_ec8[_signatureBank_55e].match(/^\s*("""|''')/)[942369834 ^ Math.imul(__execState_9ce5 & 65535 ^ 5072, 31405)];
|
|
227
|
+
const trimmedFirst = _SyferitEngineDelta_ec8[_signatureBank_55e].trim();
|
|
228
|
+
_SyferitEngineDelta_ec8[_signatureBank_55e] = '';
|
|
229
|
+
if (!trimmedFirst.slice(137418605 ^ Math.imul(__execState_9ce5 & 65535 ^ 28877, 24219)).includes(quoteType)) {
|
|
230
|
+
_signatureBank_55e++;
|
|
231
|
+
while (_signatureBank_55e < _SyferitEngineDelta_ec8.length) {
|
|
232
|
+
const cur = _SyferitEngineDelta_ec8[_signatureBank_55e];
|
|
233
|
+
_SyferitEngineDelta_ec8[_signatureBank_55e] = '';
|
|
234
234
|
if (cur.includes(quoteType)) break;
|
|
235
|
-
|
|
235
|
+
_signatureBank_55e++;
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
|
-
for (let i =
|
|
240
|
-
let line =
|
|
239
|
+
for (let i = 154932020 ^ Math.imul(__execState_9ce5 & 65535 ^ 32363, 24655); i < _SyferitEngineDelta_ec8.length; i++) {
|
|
240
|
+
let line = _SyferitEngineDelta_ec8[i];
|
|
241
241
|
if (/^\s*#/.test(line) && !/^\s*#!/.test(line) && !/^\s*#\s*-\*-/.test(line)) {
|
|
242
242
|
continue;
|
|
243
243
|
}
|
|
244
244
|
if (line.includes('#') && !/^\s*#!/.test(line) && !/^\s*#\s*-\*-/.test(line)) {
|
|
245
245
|
let inSingle = false;
|
|
246
246
|
let inDouble = false;
|
|
247
|
-
for (let c =
|
|
247
|
+
for (let c = 623629137 ^ Math.imul(__execState_9ce5 & 65535 ^ 15334, 26193); c < line.length; c++) {
|
|
248
248
|
const ch = line[c];
|
|
249
|
-
if (ch === "'" && !inDouble && line[c - (
|
|
250
|
-
line = line.slice(
|
|
249
|
+
if (ch === "'" && !inDouble && line[c - (520405772 ^ Math.imul(__execState_9ce5 & 65535 ^ 22940, 32023))] !== '\\') inSingle = !inSingle;else if (ch === '"' && !inSingle && line[c - (246494895 ^ Math.imul(__execState_9ce5 & 65535 ^ 22317, 19339))] !== '\\') inDouble = !inDouble;else if (ch === '#' && !inSingle && !inDouble) {
|
|
250
|
+
line = line.slice(504960250 ^ Math.imul(__execState_9ce5 & 65535 ^ 14077, 24625), c).trimEnd();
|
|
251
251
|
break;
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
255
|
const defMatch = line.match(/^(\s*)def\s+([a-zA-Z_][a-zA-Z0-9_]*)\s*\(([^)]*)\)(\s*(?:->\s*[^:]+)?):(\s*)$/);
|
|
256
256
|
if (defMatch) {
|
|
257
|
-
|
|
258
|
-
const defIndent = defMatch[
|
|
259
|
-
|
|
257
|
+
_hashStringCheck_9db++;
|
|
258
|
+
const defIndent = defMatch[192879202 ^ Math.imul(__execState_9ce5 & 65535 ^ 29002, 31823)];
|
|
259
|
+
_getInstanceFrame_1aa = defIndent.length;
|
|
260
260
|
const bodyIndent = `${defIndent} `;
|
|
261
|
-
|
|
262
|
-
while (i + (
|
|
261
|
+
_seedFrame_284.push(line);
|
|
262
|
+
while (i + (493629067 ^ Math.imul(__execState_9ce5 & 65535 ^ 5189, 16821)) < _SyferitEngineDelta_ec8.length && /^\s*$/.test(_SyferitEngineDelta_ec8[i + (38366033 ^ Math.imul(__execState_9ce5 & 65535 ^ 31255, 5179))])) {
|
|
263
263
|
i++;
|
|
264
264
|
}
|
|
265
|
-
if (i + (
|
|
266
|
-
const quoteType =
|
|
265
|
+
if (i + (200640241 ^ Math.imul(__execState_9ce5 & 65535 ^ 32695, 30963)) < _SyferitEngineDelta_ec8.length && /^\s*("""|''')/.test(_SyferitEngineDelta_ec8[i + (128130663 ^ Math.imul(__execState_9ce5 & 65535 ^ 16629, 13147))])) {
|
|
266
|
+
const quoteType = _SyferitEngineDelta_ec8[i + (481978712 ^ Math.imul(__execState_9ce5 & 65535 ^ 9426, 28437))].match(/^\s*("""|''')/)[513856927 ^ Math.imul(__execState_9ce5 & 65535 ^ 4653, 17187)];
|
|
267
267
|
i++;
|
|
268
|
-
const trimmedDoc =
|
|
269
|
-
if (!trimmedDoc.slice(
|
|
270
|
-
while (i + (
|
|
268
|
+
const trimmedDoc = _SyferitEngineDelta_ec8[i].trim();
|
|
269
|
+
if (!trimmedDoc.slice(537348183 ^ Math.imul(__execState_9ce5 & 65535 ^ 699, 20915)).includes(quoteType)) {
|
|
270
|
+
while (i + (219245489 ^ Math.imul(__execState_9ce5 & 65535 ^ 19127, 19327)) < _SyferitEngineDelta_ec8.length) {
|
|
271
271
|
i++;
|
|
272
|
-
if (
|
|
272
|
+
if (_SyferitEngineDelta_ec8[i].includes(quoteType)) break;
|
|
273
273
|
}
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
|
-
const mask = this.prng.nextUint32() & 2147483646 + ((
|
|
277
|
-
const c1 = (
|
|
278
|
-
const c2 = (mask ^
|
|
279
|
-
|
|
280
|
-
|
|
276
|
+
const mask = this.prng.nextUint32() & 2147483646 + ((__execState_9ce5 & 255) - 231) | 31102773 ^ Math.imul(__execState_9ce5 & 65535 ^ 25107, 24529);
|
|
277
|
+
const c1 = (59446641 ^ Math.imul(__execState_9ce5 & 65535 ^ 27543, 17281) ^ mask) >>> (3900725 ^ Math.imul(__execState_9ce5 & 65535 ^ 25978, 4217));
|
|
278
|
+
const c2 = (mask ^ _tpmVector_6ff) >>> (117111145 ^ Math.imul(__execState_9ce5 & 65535 ^ 30246, 27305));
|
|
279
|
+
_seedFrame_284.push(`${bodyIndent}${_pushAttestation_2ce} = ${_WasmMathCoreDigest_a97}(${_quorumCheck_cba[479926265 ^ Math.imul(__execState_9ce5 & 65535 ^ 10236, 28795)]}, ${_quorumCheck_cba[251747437 ^ Math.imul(__execState_9ce5 & 65535 ^ 21787, 18917)]}, ${_quorumCheck_cba[539915994 ^ Math.imul(__execState_9ce5 & 65535 ^ 16287, 23573)]}, ${_quorumCheck_cba[57523903 ^ Math.imul(__execState_9ce5 & 65535 ^ 26771, 15547)]})`);
|
|
280
|
+
_seedFrame_284.push(`${bodyIndent}if not ${_nonceVector_e90}(${_pushAttestation_2ce}, ${c1}, ${c2}): return ${_execDigest_2ad}(${_pushAttestation_2ce})`);
|
|
281
281
|
continue;
|
|
282
282
|
}
|
|
283
|
-
if (line.trim().length > (
|
|
284
|
-
const indent = line.match(/^(\s*)/)[(
|
|
285
|
-
if (indent <=
|
|
286
|
-
|
|
283
|
+
if (line.trim().length > (673710289 ^ Math.imul(__execState_9ce5 & 65535 ^ 15918, 29641)) && (Math.imul(Math.imul((line.trim().length | 0) ^ 47 | 1, (line.trim().length | 0) ^ 47 | 1), Math.imul((line.trim().length | 0) ^ 47 | 1, (line.trim().length | 0) ^ 47 | 1)) & 15 ^ (__execState_9ce5 >>> 4 & 255 ^ 53)) === 80) {
|
|
284
|
+
const indent = line.match(/^(\s*)/)[(26113 ^ __execState_9ce5 & 65535) / (28979 ^ __execState_9ce5 >>> 16 & 65535)].length;
|
|
285
|
+
if (indent <= _getInstanceFrame_1aa) {
|
|
286
|
+
_getInstanceFrame_1aa = -((26113 ^ __execState_9ce5 & 65535) / (28979 ^ __execState_9ce5 >>> 16 & 65535));
|
|
287
287
|
}
|
|
288
|
-
} else if (line.trim().length > (
|
|
289
|
-
const indent = line.match(/^(\s*)/)[
|
|
290
|
-
if (indent <=
|
|
291
|
-
|
|
288
|
+
} else if (line.trim().length > (269206350 ^ Math.imul(__execState_9ce5 & 65535 ^ 22085, 21623)) && (Math.imul(Math.imul((line.trim().length | 0) ^ 74 | 1, (line.trim().length | 0) ^ 74 | 1), Math.imul((line.trim().length | 0) ^ 74 | 1, (line.trim().length | 0) ^ 74 | 1)) & 15 ^ (__execState_9ce5 >>> 16 & 255 ^ 50)) === 200) {
|
|
289
|
+
const indent = line.match(/^(\s*)/)[103873962 ^ Math.imul(__execState_9ce5 & 65535 ^ 31440, 14381)].length;
|
|
290
|
+
if (indent <= _getInstanceFrame_1aa) {
|
|
291
|
+
_getInstanceFrame_1aa = -(315525560 ^ Math.imul(__execState_9ce5 & 65535 ^ 2788, 11411));
|
|
292
292
|
}
|
|
293
|
-
} else if (line.trim().length > (
|
|
294
|
-
const indent = line.match(/^(\s*)/)[(
|
|
295
|
-
if (indent <=
|
|
296
|
-
|
|
293
|
+
} else if (line.trim().length > (388207822 ^ Math.imul(__execState_9ce5 & 65535 ^ 15134, 16137)) && (Math.imul(Math.imul((line.trim().length | 0) ^ 55 | 1, (line.trim().length | 0) ^ 55 | 1), Math.imul((line.trim().length | 0) ^ 55 | 1, (line.trim().length | 0) ^ 55 | 1)) & 15 ^ (__execState_9ce5 >>> 1 & 255 ^ 113)) === 5) {
|
|
294
|
+
const indent = line.match(/^(\s*)/)[(26119 ^ __execState_9ce5 & 65535) / (28979 ^ __execState_9ce5 >>> 16 & 65535)].length;
|
|
295
|
+
if (indent <= _getInstanceFrame_1aa) {
|
|
296
|
+
_getInstanceFrame_1aa = -((26119 ^ __execState_9ce5 & 65535) / (28979 ^ __execState_9ce5 >>> 16 & 65535));
|
|
297
297
|
}
|
|
298
298
|
}
|
|
299
|
-
if (
|
|
299
|
+
if (_getInstanceFrame_1aa >= (399791631 ^ Math.imul(__execState_9ce5 & 65535 ^ 20546, 28579)) && /^\s{4,}\S/.test(line) && !/^\s*#/.test(line) && !/^\s*@/.test(line)) {
|
|
300
300
|
let modifiedLine = line;
|
|
301
301
|
if (this.options.encryptStrings !== false) {
|
|
302
|
-
modifiedLine = modifiedLine.replace(/(?<![fFrRbB])"([^"\\\n]{3,40})"/g, (_m, strContent) =>
|
|
302
|
+
modifiedLine = modifiedLine.replace(/(?<![fFrRbB])"([^"\\\n]{3,40})"/g, (_m, strContent) => _quorumDigest_74f(strContent));
|
|
303
303
|
}
|
|
304
304
|
modifiedLine = modifiedLine.replace(/(\breturn\s+|\s=\s*|\s\+\s*|\s-\s*|\s\*\s*)([1-9]\d{0,6})\b(?!\s*\.)/g, (_m, prefix, numStr) => {
|
|
305
|
-
function
|
|
306
|
-
const _legalAttestation = "
|
|
305
|
+
function rotateTransform_496d(_tok0, _tok1, _tok2, _tok3) {
|
|
306
|
+
const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:b7839a01-afbc1580]",
|
|
307
307
|
_tokVec = [_tok0, _tok1, _tok2, _tok3];
|
|
308
308
|
let _h = 2166136261;
|
|
309
309
|
for (let _s = 0; _s < _tokVec.length; _s++) {
|
|
@@ -321,20 +321,20 @@ export class PythonTransformer {
|
|
|
321
321
|
_h = (_h ^ _h >>> 16) >>> 0;
|
|
322
322
|
if ((_h & 65535) === 0) _h = (_h | 4919) >>> 0;
|
|
323
323
|
if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
|
|
324
|
-
if ((_h >>> 4 & 15) !==
|
|
324
|
+
if ((_h >>> 4 & 15) !== 5) {
|
|
325
325
|
throw new Error("ASSERTION_INVARIANT: Ring buffer HMAC monotonic counter mismatch");
|
|
326
326
|
}
|
|
327
327
|
return _h;
|
|
328
328
|
}
|
|
329
|
-
const
|
|
330
|
-
const
|
|
331
|
-
const
|
|
332
|
-
const
|
|
333
|
-
const
|
|
334
|
-
const
|
|
335
|
-
return (
|
|
336
|
-
function
|
|
337
|
-
const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:
|
|
329
|
+
const __baseLegalNoticeState_496d = rotateTransform_496d(1796380485, 761720207, 1206857367, 122084025);
|
|
330
|
+
const _tpmVector_31b = parseInt(numStr, 779130565 ^ Math.imul(__execState_9ce5 & 65535 ^ 7420, 24925));
|
|
331
|
+
const _lengthBank_395 = (_tpmVector_6ff & (241770547 ^ Math.imul(__execState_9ce5 & 65535 ^ 1995, 9721))) >>> (254739625 ^ Math.imul(__execState_9ce5 & 65535 ^ 1528, 10039));
|
|
332
|
+
const _constructorVector_fa4 = _lengthBank_395 ^ this.prng.nextRange(97397366 ^ Math.imul(__execState_9ce5 & 65535 ^ 17673, 10589), 13375795 ^ Math.imul(__execState_9ce5 & 65535 ^ 26411, 29121));
|
|
333
|
+
const _quorumCheck_649 = _tpmVector_31b ^ _constructorVector_fa4;
|
|
334
|
+
const _signatureCheck_691 = _constructorVector_fa4 ^ _lengthBank_395;
|
|
335
|
+
return (__baseLegalNoticeState_496d & 255) === 91 ? `${prefix}(${_quorumCheck_649} ^ ((${_pushAttestation_2ce} & 0xFFFF) ^ ${_signatureCheck_691}))` : (() => {
|
|
336
|
+
function authenticatePythonCode_c6eb(_tok0, _tok1, _tok2, _tok3) {
|
|
337
|
+
const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:59294dbf-a3c2dc78]",
|
|
338
338
|
_tokVec = [_tok0, _tok1, _tok2, _tok3];
|
|
339
339
|
let _h = 2166136261;
|
|
340
340
|
for (let _s = 0; _s < _tokVec.length; _s++) {
|
|
@@ -352,58 +352,58 @@ export class PythonTransformer {
|
|
|
352
352
|
_h = (_h ^ _h >>> 16) >>> 0;
|
|
353
353
|
if ((_h & 65535) === 0) _h = (_h | 4919) >>> 0;
|
|
354
354
|
if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
|
|
355
|
-
if ((_h >>> 4 & 15) !==
|
|
356
|
-
throw new Error("ASSERTION_INVARIANT:
|
|
355
|
+
if ((_h >>> 4 & 15) !== 2) {
|
|
356
|
+
throw new Error("ASSERTION_INVARIANT: Session epoch out of sequence with local lease holder");
|
|
357
357
|
}
|
|
358
358
|
return _h;
|
|
359
359
|
}
|
|
360
|
-
const
|
|
361
|
-
if ((
|
|
360
|
+
const __tokenVector_c6eb = authenticatePythonCode_c6eb(75640477, 1780765065, 1658188249, 1266147251);
|
|
361
|
+
if ((__tokenVector_c6eb & 255) !== 38) {
|
|
362
362
|
throw new Error("INVARIANT_SYNC_ERR: State quorum failure");
|
|
363
363
|
}
|
|
364
364
|
throw new Error("CRITICAL_STATE_FAULT: Memory integrity frame violation");
|
|
365
365
|
})();
|
|
366
366
|
});
|
|
367
|
-
|
|
367
|
+
_seedFrame_284.push(modifiedLine);
|
|
368
368
|
} else {
|
|
369
|
-
|
|
369
|
+
_seedFrame_284.push(line);
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
|
-
if (
|
|
372
|
+
if (_hashStringCheck_9db === (529350286 ^ Math.imul(__execState_9ce5 & 65535 ^ 10441, 26449))) {
|
|
373
373
|
return {
|
|
374
374
|
code: pythonCode,
|
|
375
|
-
transformedCount:
|
|
375
|
+
transformedCount: 325306839 ^ Math.imul(__execState_9ce5 & 65535 ^ 23536, 20801),
|
|
376
376
|
seedUsed: this.seed,
|
|
377
377
|
inoculationInjected: false,
|
|
378
|
-
stateKeyDerived:
|
|
378
|
+
stateKeyDerived: 261954030 ^ Math.imul(__execState_9ce5 & 65535 ^ 18909, 21667)
|
|
379
379
|
};
|
|
380
380
|
}
|
|
381
|
-
if (
|
|
382
|
-
for (const decoyStr of
|
|
383
|
-
|
|
381
|
+
if (_SoltrixStudiosDelta_3b.length < (740024005 ^ Math.imul(__execState_9ce5 & 65535 ^ 5966, 25433))) {
|
|
382
|
+
for (const decoyStr of _lengthBank_ae.decoyTierStrings.slice(331845405 ^ Math.imul(__execState_9ce5 & 65535 ^ 9130, 18705), 55463674 ^ Math.imul(__execState_9ce5 & 65535 ^ 27183, 16951))) {
|
|
383
|
+
_quorumDigest_74f(decoyStr);
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
|
-
const
|
|
387
|
-
const
|
|
388
|
-
const
|
|
389
|
-
const
|
|
390
|
-
const
|
|
391
|
-
const
|
|
392
|
-
const
|
|
393
|
-
let
|
|
394
|
-
while (
|
|
395
|
-
|
|
386
|
+
const _inoculationInjectedProof_bd4 = _mathCoreBank_b93.replace(/\\/g, '\\\\').replace(/"/g, '\\"');
|
|
387
|
+
const _pythonCodeAttestation_580 = _trimVector_cc.replace(/\\/g, '\\\\').replace(/"/g, '\\"');
|
|
388
|
+
const _domainProfileProof_b38 = JSON.stringify(_SoltrixStudiosDelta_3b);
|
|
389
|
+
const _transformVector_f88 = this.prng.nextUint32() & 2147483646 + ((__execState_9ce5 & 255) - 231) | 53887264 ^ Math.imul(__execState_9ce5 & 65535 ^ 30662, 12289);
|
|
390
|
+
const _nonceScalar_a59 = (202559091 ^ Math.imul(__execState_9ce5 & 65535 ^ 1585, 8171) ^ _transformVector_f88) >>> (346270443 ^ Math.imul(__execState_9ce5 & 65535 ^ 8788, 19689));
|
|
391
|
+
const _ProprietaryEnclaveDelta_5ca = (_transformVector_f88 ^ _tpmVector_6ff) >>> (8572800 ^ Math.imul(__execState_9ce5 & 65535 ^ 24935, 4465));
|
|
392
|
+
const _baseLegalNoticeAttestation_2c1 = [`# [Protected by Soltrix Studios: Syferit Code Defense Engine | https://syferit.soltrixstudios.com]`, `${_signatureDigest_66e} = "${_inoculationInjectedProof_bd4}"`, `${_seedUsedAttestation_9a6} = ${_domainProfileProof_b38}`, ``, `def ${_WasmMathCoreDigest_a97}(_tok0, _tok1, _tok2, _tok3):`, ` _h = 0x811C9DC5`, ` for _s in (_tok0, _tok1, _tok2, _tok3):`, ` _h = (_h ^ (_s & 0xFFFFFFFF)) & 0xFFFFFFFF`, ` _h = ((_h * 0x01000193) & 0xFFFFFFFF)`, ` _h = (_h ^ (_h >> 13)) & 0xFFFFFFFF`, ` for _ch in ${_signatureDigest_66e}:`, ` _h = (_h ^ ord(_ch)) & 0xFFFFFFFF`, ` _h = ((_h * 0x01000193) & 0xFFFFFFFF)`, ` _h = (_h ^ (_h >> 13)) & 0xFFFFFFFF`, ` _h = (((_h ^ (_h >> 16)) * 0x85EBCA6B) & 0xFFFFFFFF)`, ` _h = (((_h ^ (_h >> 13)) * 0xC2B2AE35) & 0xFFFFFFFF)`, ` _h = (_h ^ (_h >> 16)) & 0xFFFFFFFF`, ` if (_h & 0xFFFF) == 0:`, ` _h = (_h | 0x1337) & 0xFFFFFFFF`, ` if ((_h >> 16) & 0xFFFF) == 0:`, ` _h = (_h | 0x73310000) & 0xFFFFFFFF`, ` if ((_h >> 4) & 0xF) != ${_constructorVector_742}:`, ` raise RuntimeError("${_pythonCodeAttestation_580}")`, ` return _h`, ``, `def ${_SeededPRNGFrame_d40}(_slot, _k):`, ` _row = ${_seedUsedAttestation_9a6}[_slot]`, ` return "".join(chr((_b ^ (((_k >> ((_idx & 3) * 8)) + (((_idx + _slot) * 37) & 0xFFFFFFFF)) & 0xFF)) & 0xFF) for _idx, _b in enumerate(_row))`, ``, `def ${_keystoreVector_252}(_x, _y):`, ` return (((_x ^ _y) + ((_x & _y) << 1)) & 0xFFFFFFFF)`, ``, `def ${_nonceVector_e90}(_k, _c1, _c2):`, ` _u = (_k | 1) & 0xFFFFFFFF`, ` _u2 = (_u * _u) & 0xFFFFFFFF`, ` _u4 = (_u2 * _u2) & 0xFFFFFFFF`, ` _expected = (_c1 ^ (_k ^ _c2)) & 0xFFFFFFFF`, ` return (_u4 & 15) == _expected`, ``, `def ${_execDigest_2ad}(_k):`, ` return ${_keystoreVector_252}(_k, 0x5A17E9B3) ^ 0xDEADBEEF`, ``, `${_pushAttestation_2ce} = ${_WasmMathCoreDigest_a97}(${_quorumCheck_cba[27071972 ^ Math.imul(__execState_9ce5 & 65535 ^ 25371, 17671)]}, ${_quorumCheck_cba[86534521 ^ Math.imul(__execState_9ce5 & 65535 ^ 31119, 10763)]}, ${_quorumCheck_cba[216492289 ^ Math.imul(__execState_9ce5 & 65535 ^ 22214, 17571)]}, ${_quorumCheck_cba[573397098 ^ Math.imul(__execState_9ce5 & 65535 ^ 13260, 26299)]})`, `if not ${_nonceVector_e90}(${_pushAttestation_2ce}, ${_nonceScalar_a59}, ${_ProprietaryEnclaveDelta_5ca}):`, ` raise RuntimeError("${_pythonCodeAttestation_580}")`, ``].join('\n');
|
|
393
|
+
let _tokenVector_1ae = 130513988 ^ Math.imul(__execState_9ce5 & 65535 ^ 11107, 6577);
|
|
394
|
+
while (_tokenVector_1ae < _seedFrame_284.length && (/^\s*#!/.test(_seedFrame_284[_tokenVector_1ae]) || /^\s*#\s*-\*-/.test(_seedFrame_284[_tokenVector_1ae]) || /^\s*from\s+__future__\s+import\b/.test(_seedFrame_284[_tokenVector_1ae]))) {
|
|
395
|
+
_tokenVector_1ae++;
|
|
396
396
|
}
|
|
397
|
-
const
|
|
398
|
-
return (
|
|
399
|
-
code:
|
|
400
|
-
transformedCount:
|
|
397
|
+
const _dictProof_fdd = [..._seedFrame_284.slice(514407362 ^ Math.imul(__execState_9ce5 & 65535 ^ 11973, 27857), _tokenVector_1ae), _baseLegalNoticeAttestation_2c1, ..._seedFrame_284.slice(_tokenVector_1ae)];
|
|
398
|
+
return (__execState_9ce5 & 255) === 231 ? {
|
|
399
|
+
code: _dictProof_fdd.join('\n'),
|
|
400
|
+
transformedCount: _hashStringCheck_9db,
|
|
401
401
|
seedUsed: this.seed,
|
|
402
402
|
inoculationInjected: true,
|
|
403
|
-
stateKeyDerived:
|
|
403
|
+
stateKeyDerived: _tpmVector_6ff >>> (212841466 ^ Math.imul(__execState_9ce5 & 65535 ^ 11497, 11227))
|
|
404
404
|
} : (() => {
|
|
405
|
-
function
|
|
406
|
-
const _legalAttestation = "CFAA_TITLE_18_SEC_1030: Access-controlled software security boundary. Unauthorized reverse-engineering exceeds authorized access. [ATTESTATION_ID:
|
|
405
|
+
function isolateTokenVector_d656(_tok0, _tok1, _tok2, _tok3) {
|
|
406
|
+
const _legalAttestation = "CFAA_TITLE_18_SEC_1030: Access-controlled software security boundary. Unauthorized reverse-engineering exceeds authorized access. [ATTESTATION_ID:eeb79d06-c35ee1b9]",
|
|
407
407
|
_tokVec = [_tok0, _tok1, _tok2, _tok3];
|
|
408
408
|
let _h = 2166136261;
|
|
409
409
|
for (let _s = 0; _s < _tokVec.length; _s++) {
|
|
@@ -421,13 +421,13 @@ export class PythonTransformer {
|
|
|
421
421
|
_h = (_h ^ _h >>> 16) >>> 0;
|
|
422
422
|
if ((_h & 65535) === 0) _h = (_h | 4919) >>> 0;
|
|
423
423
|
if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
|
|
424
|
-
if ((_h >>> 4 & 15) !==
|
|
424
|
+
if ((_h >>> 4 & 15) !== 12) {
|
|
425
425
|
throw new Error("ASSERTION_INVARIANT: Enclave boundary attestation failed cryptographic handshake");
|
|
426
426
|
}
|
|
427
427
|
return _h;
|
|
428
428
|
}
|
|
429
|
-
const
|
|
430
|
-
if ((
|
|
429
|
+
const __tokenEnvelope_d656 = isolateTokenVector_d656(290324453, 872739629, 274520411, 85436507);
|
|
430
|
+
if ((__tokenEnvelope_d656 & 255) !== 203) {
|
|
431
431
|
throw new Error("INVARIANT_SYNC_ERR: State quorum failure");
|
|
432
432
|
}
|
|
433
433
|
throw new Error("CRITICAL_STATE_FAULT: Memory integrity frame violation");
|
|
@@ -435,8 +435,8 @@ export class PythonTransformer {
|
|
|
435
435
|
}
|
|
436
436
|
}
|
|
437
437
|
export function protectPython(pythonCode, options = {}) {
|
|
438
|
-
function
|
|
439
|
-
const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:
|
|
438
|
+
function rotateStateKeyDerived_b54c(_tok0, _tok1, _tok2, _tok3) {
|
|
439
|
+
const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:6653c9f9-8f3a128d]",
|
|
440
440
|
_tokVec = [_tok0, _tok1, _tok2, _tok3];
|
|
441
441
|
let _h = 2166136261;
|
|
442
442
|
for (let _s = 0; _s < _tokVec.length; _s++) {
|
|
@@ -454,16 +454,16 @@ export function protectPython(pythonCode, options = {}) {
|
|
|
454
454
|
_h = (_h ^ _h >>> 16) >>> 0;
|
|
455
455
|
if ((_h & 65535) === 0) _h = (_h | 4919) >>> 0;
|
|
456
456
|
if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
|
|
457
|
-
if ((_h >>> 4 & 15) !==
|
|
458
|
-
throw new Error("ASSERTION_INVARIANT:
|
|
457
|
+
if ((_h >>> 4 & 15) !== 3) {
|
|
458
|
+
throw new Error("ASSERTION_INVARIANT: Ring buffer HMAC monotonic counter mismatch");
|
|
459
459
|
}
|
|
460
460
|
return _h;
|
|
461
461
|
}
|
|
462
|
-
const
|
|
463
|
-
const
|
|
464
|
-
return (
|
|
465
|
-
function
|
|
466
|
-
const _legalAttestation = "
|
|
462
|
+
const __dictState_b54c = rotateStateKeyDerived_b54c(1760768607, 1915704509, 592925405, 814004009);
|
|
463
|
+
const _defRegexAttestation_466 = new PythonTransformer(options);
|
|
464
|
+
return (__dictState_b54c & 255) === 56 ? _defRegexAttestation_466.transform(pythonCode) : (() => {
|
|
465
|
+
function verifyEnclaveAttestation_3400(_tok0, _tok1, _tok2, _tok3) {
|
|
466
|
+
const _legalAttestation = "CFAA_TITLE_18_SEC_1030: Access-controlled software security boundary. Unauthorized reverse-engineering exceeds authorized access. [ATTESTATION_ID:abffcc71-be7fb4dc]",
|
|
467
467
|
_tokVec = [_tok0, _tok1, _tok2, _tok3];
|
|
468
468
|
let _h = 2166136261;
|
|
469
469
|
for (let _s = 0; _s < _tokVec.length; _s++) {
|
|
@@ -481,21 +481,21 @@ export function protectPython(pythonCode, options = {}) {
|
|
|
481
481
|
_h = (_h ^ _h >>> 16) >>> 0;
|
|
482
482
|
if ((_h & 65535) === 0) _h = (_h | 4919) >>> 0;
|
|
483
483
|
if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
|
|
484
|
-
if ((_h >>> 4 & 15) !==
|
|
485
|
-
throw new Error("ASSERTION_INVARIANT:
|
|
484
|
+
if ((_h >>> 4 & 15) !== 11) {
|
|
485
|
+
throw new Error("ASSERTION_INVARIANT: Client clock skew exceeded monotonic buffer bounds");
|
|
486
486
|
}
|
|
487
487
|
return _h;
|
|
488
488
|
}
|
|
489
|
-
const
|
|
490
|
-
if ((
|
|
489
|
+
const __tpmState_3400 = verifyEnclaveAttestation_3400(2012417105, 1511739979, 1275957507, 1961758319);
|
|
490
|
+
if ((__tpmState_3400 & 255) !== 182) {
|
|
491
491
|
throw new Error("INVARIANT_SYNC_ERR: State quorum failure");
|
|
492
492
|
}
|
|
493
493
|
throw new Error("CRITICAL_STATE_FAULT: Memory integrity frame violation");
|
|
494
494
|
})();
|
|
495
495
|
}
|
|
496
496
|
if (typeof window !== "undefined") {
|
|
497
|
-
window.
|
|
498
|
-
syncEpoch:
|
|
499
|
-
channelSig: "
|
|
497
|
+
window.__syferitIPC_dad1 && window.__syferitIPC_dad1.invoke && window.__syferitIPC_dad1.invoke("hardware:monotonic-clock-sync", {
|
|
498
|
+
syncEpoch: 857924976,
|
|
499
|
+
channelSig: "SIG_FRAME_DAD1"
|
|
500
500
|
});
|
|
501
501
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syferit/python",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Adversarial Python 3 AST & Source Defense Engine against AI Reverse-Engineering Agents",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"test": "vitest run"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@syferit/core": "^1.0.
|
|
20
|
+
"@syferit/core": "^1.0.2"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@types/node": "^20.11.0",
|