You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
2.1 KiB

7 years ago
  1. pyca/cryptography
  2. =================
  3. .. image:: https://img.shields.io/pypi/v/cryptography.svg
  4. :target: https://pypi.python.org/pypi/cryptography/
  5. :alt: Latest Version
  6. .. image:: https://readthedocs.org/projects/cryptography/badge/?version=latest
  7. :target: https://cryptography.io
  8. :alt: Latest Docs
  9. .. image:: https://travis-ci.org/pyca/cryptography.svg?branch=master
  10. :target: https://travis-ci.org/pyca/cryptography
  11. .. image:: https://codecov.io/github/pyca/cryptography/coverage.svg?branch=master
  12. :target: https://codecov.io/github/pyca/cryptography?branch=master
  13. ``cryptography`` is a package which provides cryptographic recipes and
  14. primitives to Python developers. Our goal is for it to be your "cryptographic
  15. standard library". It supports Python 2.6-2.7, Python 3.4+, and PyPy 5.3+.
  16. ``cryptography`` includes both high level recipes and low level interfaces to
  17. common cryptographic algorithms such as symmetric ciphers, message digests, and
  18. key derivation functions. For example, to encrypt something with
  19. ``cryptography``'s high level symmetric encryption recipe:
  20. .. code-block:: pycon
  21. >>> from cryptography.fernet import Fernet
  22. >>> # Put this somewhere safe!
  23. >>> key = Fernet.generate_key()
  24. >>> f = Fernet(key)
  25. >>> token = f.encrypt(b"A really secret message. Not for prying eyes.")
  26. >>> token
  27. '...'
  28. >>> f.decrypt(token)
  29. 'A really secret message. Not for prying eyes.'
  30. You can find more information in the `documentation`_.
  31. You can install ``cryptography`` with:
  32. .. code-block:: console
  33. $ pip install cryptography
  34. For full details see `the installation documentation`_.
  35. Discussion
  36. ~~~~~~~~~~
  37. If you run into bugs, you can file them in our `issue tracker`_.
  38. We maintain a `cryptography-dev`_ mailing list for development discussion.
  39. You can also join ``#cryptography-dev`` on Freenode to ask questions or get
  40. involved.
  41. .. _`documentation`: https://cryptography.io/
  42. .. _`the installation documentation`: https://cryptography.io/en/latest/installation/
  43. .. _`issue tracker`: https://github.com/pyca/cryptography/issues
  44. .. _`cryptography-dev`: https://mail.python.org/mailman/listinfo/cryptography-dev

Powered by TurnKey Linux.