{ "info": { "author": "UNKNOWN", "author_email": "UNKNOWN", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Topic :: Utilities" ], "description": "# PyJWE\n[JSON Web Encryption](https://tools.ietf.org/html/rfc7516) implementation in Python\n\n[![PyPI version](https://badge.fury.io/py/PyJWE.svg)](https://badge.fury.io/py/PyJWE)\n[![Build Status](https://travis-ci.org/chrisseto/pyjwe.svg?branch=master)](https://travis-ci.org/chrisseto/pyjwe)\n\n\n## Basic Usage\n\n```python\nimport jwe\n\nkey = b'MySecretKey'\nsalt = b'pepper'\n\nderived_key = jwe.kdf(key, salt)\n\nencoded = jwe.encrypt(b'SuperSecretData', derived_key)\n\nprint(encoded)\n\njwe.decrypt(encoded, derived_key) # b'SuperSecretData'\n```\n\n\n## FAQ\n\n### What is the kdf function? Should I use it? Do I have to use it?\n\n`jwe.kdf` is a very simple [key derivation function](https://en.wikipedia.org/wiki/Key_derivation_function) that uses the [PBKDF2](https://en.wikipedia.org/wiki/PBKDF2).\n\nIt is mostly there for the purpose of [key stretching](https://en.wikipedia.org/wiki/Key_stretching) so that users' keys do not have to be the perfect length for AES256.\n\nYou do not have to use it, but if you do not your key must be exactly 256 bits.\n\n\n### Why is `dir` the only algorithm supported?\n\nBecause [key wrapping](https://en.wikipedia.org/wiki/Key_Wrap) is more or less [completely useless](https://security.stackexchange.com/questions/40052/when-do-i-use-nist-aes-key-wrapping).\n\n\n### Why is AES 256 GCM the only encryption methd?\n\nIt met my needs and I've yet to need another method.\nFeel free to submit an issue if you would like another method implemented.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/chrisseto/pyjwe", "keywords": "jwe json encryption token security signing", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "PyJWE", "package_url": "https://pypi.org/project/PyJWE/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/PyJWE/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/chrisseto/pyjwe" }, "release_url": "https://pypi.org/project/PyJWE/1.0.0/", "requires_dist": null, "requires_python": null, "summary": "JSON Web Encryption implementation in Python", "version": "1.0.0" }, "last_serial": 1865538, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "53e57f07885293e863f5f69f512a61b4", "sha256": "73b990f64e25db31edacefc2f069c635615525893170e4e37f1340d9aa5cb154" }, "downloads": -1, "filename": "PyJWE-0.1.0.tar.gz", "has_sig": false, "md5_digest": "53e57f07885293e863f5f69f512a61b4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1855, "upload_time": "2015-10-11T21:05:15", "url": "https://files.pythonhosted.org/packages/73/7b/e4d0d66a93d456800b09e2e15a52a64932c8fb454671b67ede3d66cb73a1/PyJWE-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "dbc85e31baf5c87a843add8728b68c8c", "sha256": "afd7173b3c2d9530ba5f8009fba9afc67b9996288ff2a5800206858e23743d55" }, "downloads": -1, "filename": "PyJWE-0.1.1.tar.gz", "has_sig": false, "md5_digest": "dbc85e31baf5c87a843add8728b68c8c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1730, "upload_time": "2015-10-11T21:07:30", "url": "https://files.pythonhosted.org/packages/f3/ec/5147fd78dacf931041559187fb1fff12cdea4fb6b2162a9d5e7323cbcf71/PyJWE-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "b26d8fc041e87a42bb035de22a1a17b0", "sha256": "2307be68b2b5e7fe012ba157e304e3d614d372cbf60cf935601fc9bed267c428" }, "downloads": -1, "filename": "PyJWE-0.1.2.tar.gz", "has_sig": false, "md5_digest": "b26d8fc041e87a42bb035de22a1a17b0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5896, "upload_time": "2015-10-11T21:09:58", "url": "https://files.pythonhosted.org/packages/df/03/6ed26eec66e3e4eedcce8ddf565afaf2cf6b2ce21e553e0839afa6086ef1/PyJWE-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "51048f0e8d7c2a14b9d220b8c52fd196", "sha256": "00cea978017bf7d4be67e0a780d865b65cc0b959e81ca2eb4521a9fbebf02564" }, "downloads": -1, "filename": "PyJWE-0.1.3.tar.gz", "has_sig": false, "md5_digest": "51048f0e8d7c2a14b9d220b8c52fd196", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6617, "upload_time": "2015-10-11T21:14:04", "url": "https://files.pythonhosted.org/packages/7a/0f/765da2b591e011e68e1a600ce8f0970c103da76b910bdda7021002c0cdab/PyJWE-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "1110692b215f7e090e0d4edcca4f228e", "sha256": "43977fec1695fa6df653ff9420b53f502f089b510292f9abd2811ac4dc72b6e0" }, "downloads": -1, "filename": "PyJWE-0.1.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1110692b215f7e090e0d4edcca4f228e", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 3322, "upload_time": "2015-10-12T19:05:37", "url": "https://files.pythonhosted.org/packages/e1/39/763af5fbe3770339a48b4aaa66e1b22db0f51437218ae6cf44fad9ded5a2/PyJWE-0.1.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fd9ac1fba64b31b668306b9816ca8cae", "sha256": "262f05940ef55e2e466cb04fcab15c0fac47d804bfe80855aa4223b584890118" }, "downloads": -1, "filename": "PyJWE-0.1.4.tar.gz", "has_sig": false, "md5_digest": "fd9ac1fba64b31b668306b9816ca8cae", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6619, "upload_time": "2015-10-12T19:05:30", "url": "https://files.pythonhosted.org/packages/ce/ba/c5c2cfe2f03d626586b0adb6599b3423c48a9867557af2ba2360f09d0218/PyJWE-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "22973ac80ca3d023e964605541ced490", "sha256": "62044ac1fe51d439264da0ed9c1b3b4a5949a0915c7cab0740c92a869d2ebb0d" }, "downloads": -1, "filename": "PyJWE-0.1.5.tar.gz", "has_sig": false, "md5_digest": "22973ac80ca3d023e964605541ced490", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6632, "upload_time": "2015-10-13T17:44:46", "url": "https://files.pythonhosted.org/packages/a7/58/cb926d98f4b1f0ef529609c9257f86cf73d305485dcb644749d25169afc4/PyJWE-0.1.5.tar.gz" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "cc7d8b8acb7010005ef8a97b05f54ff3", "sha256": "b612d933d6f262bbbc709d6f6ac8285c38edfa5a33afac82d0537ab65a764ca4" }, "downloads": -1, "filename": "PyJWE-0.1.6-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "cc7d8b8acb7010005ef8a97b05f54ff3", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 5193, "upload_time": "2015-10-22T18:14:46", "url": "https://files.pythonhosted.org/packages/c6/55/7d735e4202ccf3723ff4522aa8304ac9fe01dab521b38693d3e516dfe028/PyJWE-0.1.6-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6da2536f3a0b48ebcb5fe40aea7ccba8", "sha256": "e0a044c4109c03df3fc9012beae0c85b8eaaabe4f3b8c7b308ffd6af1bba8bc3" }, "downloads": -1, "filename": "PyJWE-0.1.6.tar.gz", "has_sig": false, "md5_digest": "6da2536f3a0b48ebcb5fe40aea7ccba8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7315, "upload_time": "2015-10-22T18:14:42", "url": "https://files.pythonhosted.org/packages/57/da/4976b42256f2a4a614df335dda01d7972a742d1e991f1e50cb992dc13d43/PyJWE-0.1.6.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "f440a1f2e46e1c134027bfdaf3961000", "sha256": "e3b3de7be4fcc260e5f1a47ead9c9a9211d8ce98f9e1d88d9a7225198aa9ce47" }, "downloads": -1, "filename": "PyJWE-1.0.0.tar.gz", "has_sig": false, "md5_digest": "f440a1f2e46e1c134027bfdaf3961000", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8119, "upload_time": "2015-12-16T19:18:36", "url": "https://files.pythonhosted.org/packages/59/f9/9d8f24fdcae49fcb18607bdde460fdfc80a55721b86014d0c2fb617ee8b2/PyJWE-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f440a1f2e46e1c134027bfdaf3961000", "sha256": "e3b3de7be4fcc260e5f1a47ead9c9a9211d8ce98f9e1d88d9a7225198aa9ce47" }, "downloads": -1, "filename": "PyJWE-1.0.0.tar.gz", "has_sig": false, "md5_digest": "f440a1f2e46e1c134027bfdaf3961000", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8119, "upload_time": "2015-12-16T19:18:36", "url": "https://files.pythonhosted.org/packages/59/f9/9d8f24fdcae49fcb18607bdde460fdfc80a55721b86014d0c2fb617ee8b2/PyJWE-1.0.0.tar.gz" } ] }