{ "info": { "author": "Nathan Reynolds", "author_email": "email@nreynolds.co.uk", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Topic :: Software Development" ], "description": "===========\nvalidatesns\n===========\n\nValidate integrity of Amazon SNS messages.\n\n* Verifies cryptographic signature.\n* Checks signing certificate is hosted on an Amazon-controlled URL.\n* Requires message be no older than one hour, the maximum lifetime of an SNS message.\n\n|CILink|_\n\nLicence: MIT_.\n\n\n***********\nQuick start\n***********\n\n.. code-block:: shell\n\n $ pip install validatesns\n\n.. code-block:: python\n\n import validatesns\n\n # Raise validatesns.ValidationError if message is invalid.\n validatesns.validate(decoded_json_message_from_sns)\n\n\n*******\nGotchas\n*******\n\nThe ``validate`` function downloads the signing certificate on every call. For performance reasons, it's worth caching certificates - you can do this by passing in a ``get_certificate`` function.\n\nThis takes a ``url``, and returns the certificate content. Your function could cache to the filesystem, a database, or wherever makes sense.\n\n\n**********\nContribute\n**********\n\nGithub: https://github.com/nathforge/validatesns\n\n.. |CILink| image:: https://travis-ci.org/nathforge/validatesns.svg?branch=master\n.. _CILink: https://travis-ci.org/nathforge/validatesns\n.. _MIT: https://opensource.org/licenses/MIT", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/nathforge/validatesns", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "validatesns", "package_url": "https://pypi.org/project/validatesns/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/validatesns/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/nathforge/validatesns" }, "release_url": "https://pypi.org/project/validatesns/0.1.1/", "requires_dist": null, "requires_python": null, "summary": "Validate integrity of Amazon SNS messages", "version": "0.1.1" }, "last_serial": 1793654, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "deace38d26a0fdbe21b7b6b531267d40", "sha256": "a37a281562b6bea7f3488705b68c81eba28117c3a9d05abb5fa34a9f11a5c2a3" }, "downloads": -1, "filename": "validatesns-0.1.tar.gz", "has_sig": false, "md5_digest": "deace38d26a0fdbe21b7b6b531267d40", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3623, "upload_time": "2015-10-30T11:22:12", "url": "https://files.pythonhosted.org/packages/ff/c4/c1f65b0b71d6c2cc2863aa7f490e43a90a4e5c9d664c74f995c0a645e6a9/validatesns-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "a3bdbbd36aaed2a56f7c30a78a4c028d", "sha256": "8596c0d0df88e9ba01da657b784262381ac0ff87097808d408bd883c36710493" }, "downloads": -1, "filename": "validatesns-0.1.1.tar.gz", "has_sig": false, "md5_digest": "a3bdbbd36aaed2a56f7c30a78a4c028d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3657, "upload_time": "2015-10-30T14:44:42", "url": "https://files.pythonhosted.org/packages/37/0b/853d508150da9f568fdb6b2a510da1c869c7efb9643af363d8ddf1090b0b/validatesns-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a3bdbbd36aaed2a56f7c30a78a4c028d", "sha256": "8596c0d0df88e9ba01da657b784262381ac0ff87097808d408bd883c36710493" }, "downloads": -1, "filename": "validatesns-0.1.1.tar.gz", "has_sig": false, "md5_digest": "a3bdbbd36aaed2a56f7c30a78a4c028d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3657, "upload_time": "2015-10-30T14:44:42", "url": "https://files.pythonhosted.org/packages/37/0b/853d508150da9f568fdb6b2a510da1c869c7efb9643af363d8ddf1090b0b/validatesns-0.1.1.tar.gz" } ] }