{ "info": { "author": "Shane Hathaway", "author_email": "shane@hathawaymix.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Programming Language :: Python" ], "description": "The randenc package provides simple symmetric message encryption and\ndecryption functions with message packing, compression, cryptographic\nhashes, and automatically rotated random keys. It is designed for\nshort messages such as user ID tokens and browser cookies. Usage\nexample::\n\n >>> from randenc import RandomEncryption\n >>> import tempfile\n >>> enc = RandomEncryption(tempfile.mkdtemp())\n >>> code = enc.encrypt({u'message': u'Hello, world!'})\n >>> len(code)\n 107\n >>> enc.decrypt(code)\n {u'message': u'Hello, world!'}\n\nThe encryption key and signing key are produced automatically (using\nos.urandom) and stored in the key directory. Each key will be deleted\nafter one hour by default, invalidating all encrypted codes associated\nwith that key.\n\nThe encrypt function packs the content using msgpack, compresses it using\nzlib (unless the compressed version is larger than than the uncompressed\nversion), encrypts it using AES-128 (since AES-128 seems to be considered\nmore secure than AES-256), signs it using HMAC over SHA-256, and encodes\nin URL-safe base 64 format. The decrypt function reverses that operation.\nIf the code fails validation or has expired, the decrypt function raises\nDecryptionError.\n\nThis package is designed to be compatible with clusters. The\nkeys may be stored on a shared volume using NFS or a FUSE-based filesystem.\nWith a little work, the keys could be stored in a key-value store such\nas MongoDB.", "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/hathawsh/randenc", "keywords": "encrypt", "license": "BSD-derived (http://www.repoze.org/LICENSE.txt)", "maintainer": null, "maintainer_email": null, "name": "randenc", "package_url": "https://pypi.org/project/randenc/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/randenc/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/hathawsh/randenc" }, "release_url": "https://pypi.org/project/randenc/0.1/", "requires_dist": null, "requires_python": null, "summary": "Randomized Encryption Library", "version": "0.1" }, "last_serial": 798461, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "b22bd15e31da8616193ba91a6abd277e", "sha256": "ed55e9af58a14dad5e937d36e0da639a3b0757f1d8c628677c673edce43ceab8" }, "downloads": -1, "filename": "randenc-0.1.tar.gz", "has_sig": false, "md5_digest": "b22bd15e31da8616193ba91a6abd277e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7954, "upload_time": "2012-04-05T11:10:07", "url": "https://files.pythonhosted.org/packages/a8/17/b8f02784826777280ea8a6aa66a52a4afdc47d0152c38802101173fbeca2/randenc-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b22bd15e31da8616193ba91a6abd277e", "sha256": "ed55e9af58a14dad5e937d36e0da639a3b0757f1d8c628677c673edce43ceab8" }, "downloads": -1, "filename": "randenc-0.1.tar.gz", "has_sig": false, "md5_digest": "b22bd15e31da8616193ba91a6abd277e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7954, "upload_time": "2012-04-05T11:10:07", "url": "https://files.pythonhosted.org/packages/a8/17/b8f02784826777280ea8a6aa66a52a4afdc47d0152c38802101173fbeca2/randenc-0.1.tar.gz" } ] }