Skip to main content

🔐 Kelid

Kelid (کلید) یک لایبرری پایتونی ساده و سبک برای قفل‌کردن (رمزگذاری) کدهای Python با استفاده از marshal و base64 است.
با این ابزار می‌تونی کد‌هاتو encode کنی.


⚙️ نصب

نصب:

pip install kelid

🚀 استفاده سریع

1. رمزگذاری فایل پایتون

kelid encode myscript.py -o locked.txt

فایل myscript.py رو رمزگذاری می‌کنه و نتیجه‌ی base64 رو داخل locked.txt ذخیره می‌کنه.

2. اجرای کد رمزگذاری شده

kelid run "cHJpbnQoJ1NhbGFtIGRvc3QhJyk="  # نمونه بیس64 از print("سلام دوست!")

کد base64 رمز شده رو می‌گیره، decode و اجرا می‌کنه.


📦 مثال

📄 example.py

print("سلام! این کد رمزگذاری شده بود 🗝️")

🔐 رمزگذاری:

kelid encode example.py -o encoded.txt

🚀 اجرا:

kelid run "$(cat encoded.txt)"

🛡️ هشدار امنیتی

این روش فقط برای جلوگیری از دیدن مستقیم سورس‌کد مناسبه و امنیت واقعی نیست.
کسی که به سیستم شما یا توکن شما دسترسی داره، می‌تونه کد رمز شده رو بازیابی کنه.
برای امنیت بالا از ابزارهایی مثل PyArmor یا Nuitka استفاده کن.


🧑‍💻 نویسنده

Metadata

Release files for kelid 2.7.4

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

Source distribution (sdist)

Source distribution for kelid 2.7.4
File Size Uploaded
kelid-2.7.4.tar.gz 3.3 kB Details

Built distribution (wheel)

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

Total release size: 7.7 kB

Release files / kelid-2.7.4.tar.gz

Download URL kelid-2.7.4.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
093e30eafb6a0e16e3abf295faf7bc882aaf4d8a1dd25b2d85b7208913e44789
BLAKE2b-256 checksum
How to use checksums
06da3c2a36bcd76ccb36b705ce07c988c252046bf3aa43d0ec3eeb458cccd86e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.1

Release files / kelid-2.7.4-py3-none-any.whl

Download URL kelid-2.7.4-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
72d4ee76e2899dbd5f14dfbb5bd64670751cde7c91d2c970720e3abee978548f
BLAKE2b-256 checksum
How to use checksums
9d9503e84c5d2a0bd59861cd24b6d807f8d4aee07c8923a3540613446a6710e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.1

Release history Release notifications | RSS feed

This release

2.7.4 This release

2 release files

2.4.1

2 release files

1.9.7

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