python-jose-cryptodome


Namepython-jose-cryptodome JSON
Version 1.3.2 PyPI version JSON
download
home_pagehttp://github.com/capless/python-jose-cryptodome
SummaryJOSE implementation in Python using pycryptodome
upload_time2017-10-08 02:00:48
maintainer
docs_urlNone
authorMichael Davis
requires_python
licenseMIT
keywords jose jws jwe jwt json web token security signing
VCS
bugtrack_url
requirements pycryptodome six future
Travis-CI
coveralls test coverage No coveralls.
            python-jose-cryptodome
===========

A JOSE implementation in Python using pycryptodome instead pycrypto.
Stop using pycrypto use pycryptodome_.

|Build Status| |Coverage Status| |Docs|

Docs are available on ReadTheDocs_.

The JavaScript Object Signing and Encryption (JOSE) technologies - JSON
Web Signature (JWS), JSON Web Encryption (JWE), JSON Web Key (JWK), and
JSON Web Algorithms (JWA) - collectively can be used to encrypt and/or
sign content using a variety of algorithms. While the full set of
permutations is extremely large, and might be daunting to some, it is
expected that most applications will only use a small set of algorithms
to meet their needs.


Principles
----------

This is a JOSE implementation that is not compatible with Google App Engine
as it uses pycryptodome.


Installation
------------

::

    $ pip install python-jose-cryptodome

Usage
-----

.. code-block:: python

    >>> from jose import jwt
    >>> token = jwt.encode({'key': 'value'}, 'secret', algorithm='HS256')
    u'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJrZXkiOiJ2YWx1ZSJ9.FG-8UppwHaFp1LgRYQQeS6EDQF7_6-bMFegNucHjmWg'

    >>> jwt.decode(token, 'secret', algorithms=['HS256'])
    {u'key': u'value'}


Thanks
------

This library was originally based heavily on the work of the folks over at PyJWT_.

.. |Build Status| image:: https://travis-ci.org/capless/python-jose-cryptodome.svg?branch=master
   :target: https://travis-ci.org/capless/python-jose-cryptodome
.. |Coverage Status| image:: http://codecov.io/github/capless/python-jose-cryptodome/coverage.svg?branch=master
   :target: http://codecov.io/github/capless/python-jose-cryptodome?branch=master
.. |Docs| image:: https://readthedocs.org/projects/python-jose/badge/
   :target: https://python-jose.readthedocs.org/en/latest/
.. _ReadTheDocs: https://python-jose.readthedocs.org/en/latest/
.. _PyJWT: https://github.com/jpadilla/pyjwt
.. _pycryptodome: https://blog.sqreen.io/stop-using-pycrypto-use-pycryptodome/


            

Raw data

            {
    "_id": null,
    "home_page": "http://github.com/capless/python-jose-cryptodome",
    "name": "python-jose-cryptodome",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "jose jws jwe jwt json web token security signing",
    "author": "Michael Davis",
    "author_email": "mike.philip.davis@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/62/46/7709c4b6fd1d3d97fc86d2904b12645831787ad3a240e7a3ab502cec54cf/python-jose-cryptodome-1.3.2.tar.gz",
    "platform": "",
    "description": "python-jose-cryptodome\n===========\n\nA JOSE implementation in Python using pycryptodome instead pycrypto.\nStop using pycrypto use pycryptodome_.\n\n|Build Status| |Coverage Status| |Docs|\n\nDocs are available on ReadTheDocs_.\n\nThe JavaScript Object Signing and Encryption (JOSE) technologies - JSON\nWeb Signature (JWS), JSON Web Encryption (JWE), JSON Web Key (JWK), and\nJSON Web Algorithms (JWA) - collectively can be used to encrypt and/or\nsign content using a variety of algorithms. While the full set of\npermutations is extremely large, and might be daunting to some, it is\nexpected that most applications will only use a small set of algorithms\nto meet their needs.\n\n\nPrinciples\n----------\n\nThis is a JOSE implementation that is not compatible with Google App Engine\nas it uses pycryptodome.\n\n\nInstallation\n------------\n\n::\n\n    $ pip install python-jose-cryptodome\n\nUsage\n-----\n\n.. code-block:: python\n\n    >>> from jose import jwt\n    >>> token = jwt.encode({'key': 'value'}, 'secret', algorithm='HS256')\n    u'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJrZXkiOiJ2YWx1ZSJ9.FG-8UppwHaFp1LgRYQQeS6EDQF7_6-bMFegNucHjmWg'\n\n    >>> jwt.decode(token, 'secret', algorithms=['HS256'])\n    {u'key': u'value'}\n\n\nThanks\n------\n\nThis library was originally based heavily on the work of the folks over at PyJWT_.\n\n.. |Build Status| image:: https://travis-ci.org/capless/python-jose-cryptodome.svg?branch=master\n   :target: https://travis-ci.org/capless/python-jose-cryptodome\n.. |Coverage Status| image:: http://codecov.io/github/capless/python-jose-cryptodome/coverage.svg?branch=master\n   :target: http://codecov.io/github/capless/python-jose-cryptodome?branch=master\n.. |Docs| image:: https://readthedocs.org/projects/python-jose/badge/\n   :target: https://python-jose.readthedocs.org/en/latest/\n.. _ReadTheDocs: https://python-jose.readthedocs.org/en/latest/\n.. _PyJWT: https://github.com/jpadilla/pyjwt\n.. _pycryptodome: https://blog.sqreen.io/stop-using-pycrypto-use-pycryptodome/\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "JOSE implementation in Python using pycryptodome",
    "version": "1.3.2",
    "split_keywords": [
        "jose",
        "jws",
        "jwe",
        "jwt",
        "json",
        "web",
        "token",
        "security",
        "signing"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "60c6216e7178c0b4df1d5f87444d615114ce87d54556cb1f7ba3fac0262653d2",
                "md5": "1c92c21337ebf4de75ddf20d881032ad",
                "sha256": "4c42416ae9cf06cab312bc2f236099647162cc61f4376d3c8af60e465a5b5697"
            },
            "downloads": -1,
            "filename": "python_jose_cryptodome-1.3.2-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1c92c21337ebf4de75ddf20d881032ad",
            "packagetype": "bdist_wheel",
            "python_version": "3.6",
            "requires_python": null,
            "size": 19540,
            "upload_time": "2017-10-08T02:00:50",
            "upload_time_iso_8601": "2017-10-08T02:00:50.202018Z",
            "url": "https://files.pythonhosted.org/packages/60/c6/216e7178c0b4df1d5f87444d615114ce87d54556cb1f7ba3fac0262653d2/python_jose_cryptodome-1.3.2-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "62467709c4b6fd1d3d97fc86d2904b12645831787ad3a240e7a3ab502cec54cf",
                "md5": "05a84308b9d74100ca5f0a52faf57a80",
                "sha256": "9226693ee9ff52795ea8bfc70e0b77c62dca9a0f0fcbf9635c248d190211826e"
            },
            "downloads": -1,
            "filename": "python-jose-cryptodome-1.3.2.tar.gz",
            "has_sig": false,
            "md5_digest": "05a84308b9d74100ca5f0a52faf57a80",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 13375,
            "upload_time": "2017-10-08T02:00:48",
            "upload_time_iso_8601": "2017-10-08T02:00:48.950565Z",
            "url": "https://files.pythonhosted.org/packages/62/46/7709c4b6fd1d3d97fc86d2904b12645831787ad3a240e7a3ab502cec54cf/python-jose-cryptodome-1.3.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2017-10-08 02:00:48",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "capless",
    "github_project": "python-jose-cryptodome",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "pycryptodome",
            "specs": []
        },
        {
            "name": "six",
            "specs": []
        },
        {
            "name": "future",
            "specs": []
        }
    ],
    "tox": true,
    "lcname": "python-jose-cryptodome"
}
        
Elapsed time: 0.07247s