Metadata-Version: 2.1
Name: chacha20poly1305
Version: 0.0.2
Summary: Chacha20Poly1305
Home-page: https://github.com/ph4r05/py-chacha20poly1305
Author: Dusan Klinec
Author-email: dusan.klinec@gmail.com
License: LGPL
Platform: UNKNOWN
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Topic :: Security
Provides-Extra: docs
Provides-Extra: dev
Provides-Extra: dev
Requires-Dist: pep8; extra == 'dev'
Requires-Dist: tox; extra == 'dev'
Requires-Dist: pypandoc; extra == 'dev'
Provides-Extra: docs
Requires-Dist: Sphinx (>=1.0); extra == 'docs'
Requires-Dist: sphinx-rtd-theme; extra == 'docs'
Requires-Dist: sphinxcontrib-programoutput; extra == 'docs'

Chacha20poly1305
================

Simple pure-python chacha20-poly1305 implementation based on
`tlslite-ng <https://github.com/tomato42/tlslite-ng>`__ code. Designed
to be compatible with Cryptography API.

.. code:: python

    import os
    from chacha20poly1305 import ChaCha20Poly1305

    key = os.urandom(32)
    cip = ChaCha20Poly1305(key)

    nonce = os.urandom(12)
    ciphertext = cip.encrypt(nonce, b'test')

    plaintext = cip.decrypt(nonce, ciphertext)
    print(plaintext)

Pip
---

.. code:: bash

    pip install chacha20poly1305



