Metadata-Version: 2.1
Name: pybranca
Version: 0.1.2
Summary: Authenticated and encrypted API tokens using modern crypto
Home-page: https://github.com/tuupola/branca-python
Author: Mika Tuupola
Author-email: tuupola@appelsiini.net
Maintainer: Mika Tuupola
Maintainer-email: tuupola@appelsiini.net
License: MIT
Description: #  Branca Tokens for Python
        
        Authenticated and encrypted API tokens using modern crypto.
        
        
        [![Latest Version](https://img.shields.io/pypi/v/pybranca.svg?style=flat-square)](https://pypi.org/project/pybranca/)
        [![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)
        [![Build Status](https://img.shields.io/travis/tuupola/branca-python/master.svg?style=flat-square)](https://travis-ci.org/tuupola/branca-python)
        [![Coverage](https://img.shields.io/codecov/c/github/tuupola/branca-python.svg?style=flat-square)](https://codecov.io/github/tuupola/branca-python)
        
        ## Install
        
        Install the library using pip. Note that you also must have [libsodium](https://download.libsodium.org/doc/) installed.
        
        ```
        $ brew install libsodium
        $ pip install pybranca
        ```
        
        ## Usage
        
        ```python
        import json
        from branca import Branca
        
        branca = Branca(key="supersecretkeyyoushouldnotcommit")
        
        string = json.dumps({
            "user" : "someone@example.com",
            "scope" : ["read", "write", "delete"]
        })
        
        token = branca.encode(string)
        payload = branca.decode(token)
        ```
        
        ## License
        
        The MIT License (MIT). Please see [License File](LICENSE.md) for more information.
Keywords: api,token,jwt,xchacha20,poly1305
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python
Classifier: Topic :: Security
Classifier: License :: OSI Approved :: MIT License
Description-Content-Type: text/markdown
