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.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| shlhom-2.2.1.tar.gz | 5.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| shlhom-2.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.4 kB
Release files / shlhom-2.2.1.tar.gz
| Download URL | shlhom-2.2.1.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b56e39ea9fcedf200066f07caeec982554f5dcbb9840af03ee85b8f11a91ff76
|
|
BLAKE2b-256 checksum How to use checksums |
589a6c84cb4d6b6d6849d1799c819824fb4f216858a13b710ae4360ce21221aa
|
| 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.1-py3-none-any.whl
| Download URL | shlhom-2.2.1-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
709948e304c0177b41b9e50b56037abb3bf206bdf84a86da8e2a57b6a6479b78
|
|
BLAKE2b-256 checksum How to use checksums |
e3e52a686dd866a4a498adc2074543af64ee70b1983cabd33b1dfed6bf9ea2a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|