
cryptography هي حزمة مصممة لتوفير البدائيات التشفيرية والوصفات الجاهزة لمطوري بايثون.
.. image:: https://img.shields.io/pypi/v/cryptography.svg :target: https://pypi.org/project/cryptography/ :alt: Latest Version
.. image:: https://readthedocs.org/projects/cryptography/badge/?version=latest :target: https://cryptography.io :alt: Latest Docs
.. image:: https://github.com/pyca/cryptography/actions/workflows/ci.yml/badge.svg :target: https://github.com/pyca/cryptography/actions/workflows/ci.yml?query=branch%3Amain
cryptography هي حزمة توفر وصفات وأدوات تشفير لمطوّري بايثون. هدفنا هو أن تكون "مكتبتك المعيارية للتشفير". وهي تدعم Python 3.9+ و PyPy3 7.3.11+.
تتضمن cryptography كلاً من الوصفات عالية المستوى والواجهات منخفضة المستوى للخوارزميات التشفيرية الشائعة مثل التشفير المتماثل، وملخصات الرسائل، ودوال اشتقاق المفاتيح. على سبيل المثال، لتشفير شيء ما باستخدام وصفة التشفير المتماثل عالية المستوى من cryptography:
.. code-block:: pycon
>>> from cryptography.fernet import Fernet
>>> # Put this somewhere safe!
>>> key = Fernet.generate_key()
>>> f = Fernet(key)
>>> token = f.encrypt(b"A really secret message. Not for prying eyes.")
>>> token
b'...'
>>> f.decrypt(token)
b'A really secret message. Not for prying eyes.'
يمكنك العثور على مزيد من المعلومات في الوثائق_.
يمكنك تثبيت cryptography باستخدام:
.. code-block:: console
$ pip install cryptography
للحصول على التفاصيل الكاملة، راجع وثائق التثبيت_.
نقاش
إذا واجهت أخطاءً برمجية، يمكنك تسجيلها في `متتبع المشكلات`_.
نحتفظ بقائمة بريدية `cryptography-dev`_ لمناقشة التطوير.
يمكنك أيضاً الانضمام إلى ``#pyca`` على ``irc.libera.chat`` لطرح الأسئلة أو المشاركة.
الأمان
~~~~~~~~
هل تحتاج إلى الإبلاغ عن مشكلة أمنية؟ يرجى الاطلاع على وثائق `الإبلاغ الأمني`_.
.. _`الوثائق`: https://cryptography.io/
.. _`وثائق التثبيت`: https://cryptography.io/en/latest/installation/
.. _`متتبع المشكلات`: https://github.com/pyca/cryptography/issues
.. _`cryptography-dev`: https://mail.python.org/mailman/listinfo/cryptography-dev
.. _`الإبلاغ الأمني`: https://cryptography.io/en/latest/security/