Kelid is a Python code locker using marshal and base64.
Project description
🔐 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 استفاده کن.
🧑💻 نویسنده
- Name: Ali Jafari
- Email: thealiapi@gmail.com
- GitHub: yourusername
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kelid-1.9.7.tar.gz.
File metadata
- Download URL: kelid-1.9.7.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8fe37dedac3ebc2ee2a6a1880b9e1b2e92f70604f498385b4f5bb5b402eea33a
|
|
| MD5 |
4a134123a4fae3b7f166c5a5441f3e5c
|
|
| BLAKE2b-256 |
1e8515c5411d995fd647b3e99b28374722bfbf412111fad7d6cbc2cb0620cdfb
|
File details
Details for the file kelid-1.9.7-py3-none-any.whl.
File metadata
- Download URL: kelid-1.9.7-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8265f7c1904e9c9feec34d3bd9dbe26c8f8097a68f3e5848f96202dfba748310
|
|
| MD5 |
292db3227b2bd3479b09dac0056ebdfc
|
|
| BLAKE2b-256 |
47158eacfa6b019ab153b1316a00fada6a7b85500a72388b1e2ef5468263693d
|