sitrtech 1.3.2__tar.gz → 1.4.0__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sitrtech
3
- Version: 1.3.2
3
+ Version: 1.4.0
4
4
  Summary: Encrypt & license-lock Python and PHP source (Odoo, Frappe, Django, Flask, FastAPI, Tornado, WordPress, Laravel) with AES-256 and a native runtime loader
5
5
  Author-email: SitrTech <info@sitrtech.com>
6
6
  License: Proprietary
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "sitrtech"
7
- version = "1.3.2"
7
+ version = "1.4.0"
8
8
  description = "Encrypt & license-lock Python and PHP source (Odoo, Frappe, Django, Flask, FastAPI, Tornado, WordPress, Laravel) with AES-256 and a native runtime loader"
9
9
  readme = "README.md"
10
10
  license = { text = "Proprietary" }
@@ -1,5 +1,5 @@
1
1
  """SitrTech — Python code encryption SDK."""
2
- __version__ = "1.3.2"
2
+ __version__ = "1.4.0"
3
3
  __all__ = ["encrypt", "balance", "encrypt_local", "encrypt_dir_local"]
4
4
 
5
5
  try: # optional: local-mode API (needs cryptography + bundled loaders)
@@ -96,7 +96,13 @@ def _attest_lines(ldir: str, job_id: str, root: str, wrapped: Dict[str, Any]):
96
96
  try:
97
97
  from .runtime import load_native
98
98
  nat = load_native(ldir)
99
- attest = getattr(nat, "_native_attest", None)
99
+ # v7 jobkeys attest under the per-customer secret; fall back to v6 attest.
100
+ is_v7 = isinstance(wrapped, dict) and wrapped.get("v") == 7
101
+ attest = None
102
+ if is_v7:
103
+ attest = getattr(nat, "_native_attest_v7", None)
104
+ if attest is None:
105
+ attest = getattr(nat, "_native_attest", None)
100
106
  if attest is None:
101
107
  return None
102
108
  texts = []
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sitrtech
3
- Version: 1.3.2
3
+ Version: 1.4.0
4
4
  Summary: Encrypt & license-lock Python and PHP source (Odoo, Frappe, Django, Flask, FastAPI, Tornado, WordPress, Laravel) with AES-256 and a native runtime loader
5
5
  Author-email: SitrTech <info@sitrtech.com>
6
6
  License: Proprietary
File without changes
File without changes
File without changes
File without changes