BasitCrypto
مكتبة تشفير بسيطة بلغة بايثون تدعم طريقتي التشفير XOR و شيفرة قيصر.
Installation
pip install basitcrypto
التثبيت محليًا
إذا كنت تريد تثبيت المكتبة محليًا نفذ الأمر التالي:
pip install dist/basitcrypto-0.1.0-py3-none-any.whl
تأكد من تنفيذ الأمر من المجلد الرئيسي للمشروع حيث يوجد مجلد dist/.
كيفية الاستخدام
قم باستيراد دوال التشفير وفك التشفير واستخدمها كما في المثال التالي:
from basitcrypto import encrypt_xor, decrypt_xor, encrypt_caesar, decrypt_caesar
# تجربة تشفير XOR
text = "فلسطين حرة"
key = "scret"
encrypted_xor = encrypt_xor(text, key)
decrypted_xor = decrypt_xor(encrypted_xor, key)
print("تشفير XOR:")
print("النص المشفر:", encrypted_xor)
print("النص المفكك:", decrypted_xor)
print()
# تجربة تشفير قيصر
shift = 3
encrypted_caesar = encrypt_caesar(text, shift)
decrypted_caesar = decrypt_caesar(encrypted_caesar, shift)
print("تشفير قيصر:")
print("النص المشفر:", encrypted_caesar)
print("النص المفكك:", decrypted_caesar)
ماذا تفعل المكتبة؟
- تشفير XOR: تقوم بتشفير النص عبر تطبيق عملية XOR بين حروف النص والمفتاح السري.
- شيفرة قيصر: تقوم بتشفير النص عبر تحريك كل حرف بمقدار ثابت ضمن الأبجدية.
ملاحظات هامة
- تأكد من أن المفتاح في تشفير XOR لا يكون فارغًا.
- تشفير قيصر مناسب للنصوص التي تحتوي على أحرف أبجدية فقط.
مع تحيات المطور : حسام الجنيد
Metadata
Release files for basitcrypto 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| basitcrypto-0.2.0.tar.gz | 2.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| basitcrypto-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.7 kB
Release files / basitcrypto-0.2.0.tar.gz
| Download URL | basitcrypto-0.2.0.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
07ff7eed6dfa3895d7b51035ebce5fa1061476e995790012a575f01581d71e8d
|
|
BLAKE2b-256 checksum How to use checksums |
023bcf59a35665ffd25951e6559d27aa36e9503d219efea5fad096c556a94ef9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Release files / basitcrypto-0.2.0-py3-none-any.whl
| Download URL | basitcrypto-0.2.0-py3-none-any.whl |
|---|---|
| Size | 3.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
55aaf3686250e8909b28102e2305508bde1bd735fbe29ffb092f0a1e84d16d4d
|
|
BLAKE2b-256 checksum How to use checksums |
ad389e3e1d739a792c346b1d5d5e065a42412768e09e564077a18611c6ce5f06
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Security for basitcrypto 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.