README.rst 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. .. image:: https://travis-ci.org/Legrandin/pycryptodome.svg?branch=master
  2. :target: https://travis-ci.org/Legrandin/pycryptodome
  3. .. image:: https://ci.appveyor.com/api/projects/status/mbxyqdodw9ylfib9/branch/master?svg=true
  4. :target: https://ci.appveyor.com/project/Legrandin/pycryptodome
  5. PyCryptodome
  6. ============
  7. PyCryptodome is a self-contained Python package of low-level
  8. cryptographic primitives.
  9. It supports Python 2.4 or newer, all Python 3 versions and PyPy.
  10. The installation procedure depends on the package you want the library in.
  11. PyCryptodome can be used as:
  12. #. **a drop-in replacement for the old PyCrypto library**.
  13. You install it with::
  14. pip install pycryptodome
  15. In this case, all modules are installed under the ``Crypto`` package.
  16. One must avoid having both PyCrypto and PyCryptodome installed
  17. at the same time, as they will interfere with each other.
  18. This option is therefore recommended only when you are sure that
  19. the whole application is deployed in a ``virtualenv``.
  20. #. **a library independent of the old PyCrypto**.
  21. You install it with::
  22. pip install pycryptodomex
  23. In this case, all modules are installed under the ``Cryptodome`` package.
  24. PyCrypto and PyCryptodome can coexist.
  25. For faster public key operations, you should have `GMP`_ installed in your system
  26. (except on Windows, as the wheel on PyPi already comes bundled with the equivalent
  27. `MPIR`_ library).
  28. PyCryptodome is a fork of PyCrypto. It brings the following enhancements
  29. with respect to the last official version of PyCrypto (2.6.1):
  30. * Authenticated encryption modes (GCM, CCM, EAX, SIV, OCB)
  31. * Accelerated AES on Intel platforms via AES-NI
  32. * First class support for PyPy
  33. * Elliptic curves cryptography (NIST P-256 curve only)
  34. * Better and more compact API (`nonce` and `iv` attributes for ciphers,
  35. automatic generation of random nonces and IVs, simplified CTR cipher mode,
  36. and more)
  37. * SHA-3 (including SHAKE XOFs) and BLAKE2 hash algorithms
  38. * Salsa20 and ChaCha20 stream ciphers
  39. * scrypt and HKDF
  40. * Deterministic (EC)DSA
  41. * Password-protected PKCS#8 key containers
  42. * Shamir's Secret Sharing scheme
  43. * Random numbers get sourced directly from the OS (and not from a CSPRNG in userspace)
  44. * Simplified install process, including better support for Windows
  45. * Cleaner RSA and DSA key generation (largely based on FIPS 186-4)
  46. * Major clean ups and simplification of the code base
  47. PyCryptodome is not a wrapper to a separate C library like *OpenSSL*.
  48. To the largest possible extent, algorithms are implemented in pure Python.
  49. Only the pieces that are extremely critical to performance (e.g. block ciphers)
  50. are implemented as C extensions.
  51. For more information, see the `homepage`_.
  52. All the code can be downloaded from `GitHub`_.
  53. News
  54. ----
  55. * **17 May 2017 (NEW)**. Bugfix release 3.4.6.
  56. * 6 Feb 2017. Bugfix release 3.4.5.
  57. * 1 Feb 2017. Bugfix release 3.4.4.
  58. * 17 Oct 2016. Bugfix release 3.4.3.
  59. * 8 Mar 2016. Bugfix release 3.4.2.
  60. * 21 Feb 2016. Release 3.4.1.
  61. * 7 Feb 2016. Release 3.4.
  62. * Nov 2015. Release 3.3.1.
  63. * 29 Oct 2015. Release 3.3.
  64. * 9 Sep 2015. Minor release 3.2.1.
  65. * 6 Sep 2015. Release 3.2.
  66. * 15 Mar 2015. Release 3.1.
  67. * 24 Jun 2014. Release 3.0.
  68. .. _`homepage`: http://www.pycryptodome.org
  69. .. _`GMP`: https://gmplib.org
  70. .. _`MPIR`: http://mpir.org
  71. .. _GitHub: https://github.com/Legrandin/pycryptodome