Skip to main content

shlhom

مكتبة Python لحماية الأدوات مع تحقق من السيرفر + تشفير AES-GCM.

التثبيت

pip install shlhom

الاستخدام السريع

import shlhom

shlhom.set_config(
    server_url="http://yourserver:8080",
    user_key="USER-KEY-HERE"
)

shlhom.check("2027-06-09")

print("الأداة تعمل!")

الميزات

  • تحقق من السيرفر (Server-Side Validation)
  • تشفير AES-GCM للـ Cache المحلي
  • Cache مربوط ببصمة الجهاز
  • كشف تلاعب الوقت (3 محاولات متتالية)
  • Anti-Tamper (كشف تعديل الكود)
  • Config مشفّر (لا يوجد user_key مقروء)
  • Fallback محلي عند تعطل السيرفر

API

  • set_config(server_url, user_key, cache_hours, strict_mode)
  • check(expiry_date, exit_on_fail=True, show_info=True, user_key=None)
  • lock(expiry_date, **kwargs)
  • get_device_id()
  • get_real_time()
  • verify_server()

الترخيص

MIT

Release files for shlhom 2.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for shlhom 2.2.0
File Size Uploaded
shlhom-2.2.0.tar.gz 5.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for shlhom 2.2.0
File Interpreter ABI Platform
shlhom-2.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.4 kB

Release files / shlhom-2.2.0.tar.gz

Download URL shlhom-2.2.0.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
1d69e17a56e466f3e25509f13986c1f67404fa052f551b47af47d0316a6d2220
BLAKE2b-256 checksum
How to use checksums
7978f0cf9949322b95623ffc17d8c0d68bab62324f7d37c6d6d4b36c55a0fc11
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release files / shlhom-2.2.0-py3-none-any.whl

Download URL shlhom-2.2.0-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
188072ccfca6da505fdf83369f330f3bb54d537de688ed72190e35371188a46d
BLAKE2b-256 checksum
How to use checksums
a1e32b3f596b3141e0969159357eeba22dfc1713ae837a8fef8db74291ce7bf8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release history Release notifications | RSS feed

3.0.1

2 release files

3.0.0

2 release files

2.2.1

2 release files

This release

2.2.0 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page