Skip to main content

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 استفاده کن.


🧑‍💻 نویسنده

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kelid-1.9.7.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kelid-1.9.7-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

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

Hashes for kelid-1.9.7.tar.gz
Algorithm Hash digest
SHA256 8fe37dedac3ebc2ee2a6a1880b9e1b2e92f70604f498385b4f5bb5b402eea33a
MD5 4a134123a4fae3b7f166c5a5441f3e5c
BLAKE2b-256 1e8515c5411d995fd647b3e99b28374722bfbf412111fad7d6cbc2cb0620cdfb

See more details on using hashes here.

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

Hashes for kelid-1.9.7-py3-none-any.whl
Algorithm Hash digest
SHA256 8265f7c1904e9c9feec34d3bd9dbe26c8f8097a68f3e5848f96202dfba748310
MD5 292db3227b2bd3479b09dac0056ebdfc
BLAKE2b-256 47158eacfa6b019ab153b1316a00fada6a7b85500a72388b1e2ef5468263693d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page