{ "info": { "author": "Filippo Valsorda", "author_email": "fv@filippo.io", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3", "Topic :: Security :: Cryptography", "Topic :: Software Development :: Libraries" ], "description": "python-twofish\n==============\n\nBindings for the Twofish implementation by Niels Ferguson libtwofish-dev_.\n\nCompatible with Python 2.6, 2.7 and 3.3.\n\nThe library performs a self-test at each import.\n\n.. _libtwofish-dev: http://packages.debian.org/sid/libtwofish-dev\n\nInstallation\n------------\n\n::\n\n pip install twofish\n\nUsage\n-----\n\nCreate a ``twofish.Twofish`` instance with a key of length ]0, 32] and then use the ``encrypt`` and ``decrypt`` methods on 16 bytes blocks.\n\nAll values must be binary strings (``str`` on Python 2, ``bytes`` on Python 3)\n\n**[WARNING]** this should be used in a senseful cipher mode, like CTR or CBC. If you don't know what this mean, you should probably usa a higher level library.\n\nExample\n-------\n\n>>> from twofish import Twofish\n>>> T = Twofish(b'*secret*')\n>>> x = T.encrypt(b'YELLOWSUBMARINES')\n>>> print(T.decrypt(x).decode())\nYELLOWSUBMARINES", "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/keybase/python-twofish", "keywords": null, "license": "3-clause BSD", "maintainer": null, "maintainer_email": null, "name": "twofish", "package_url": "https://pypi.org/project/twofish/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/twofish/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/keybase/python-twofish" }, "release_url": "https://pypi.org/project/twofish/0.3.0/", "requires_dist": null, "requires_python": null, "summary": "Bindings for the Twofish implementation by Niels Ferguson", "version": "0.3.0" }, "last_serial": 920654, "releases": { "0.3.0": [ { "comment_text": "", "digests": { "md5": "d7d22f16dc4ffa0e3ae2200654033abe", "sha256": "b09d8bb50d33b23ff34cafb1f9209f858f752935c6a5c901efb92a41acb830fa" }, "downloads": -1, "filename": "twofish-0.3.0.tar.gz", "has_sig": false, "md5_digest": "d7d22f16dc4ffa0e3ae2200654033abe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 26039, "upload_time": "2013-11-15T20:37:59", "url": "https://files.pythonhosted.org/packages/82/b4/9eb026a8e62a04512435d3de25c93f7bda51c8b8c7991c1c0be70b5115a6/twofish-0.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d7d22f16dc4ffa0e3ae2200654033abe", "sha256": "b09d8bb50d33b23ff34cafb1f9209f858f752935c6a5c901efb92a41acb830fa" }, "downloads": -1, "filename": "twofish-0.3.0.tar.gz", "has_sig": false, "md5_digest": "d7d22f16dc4ffa0e3ae2200654033abe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 26039, "upload_time": "2013-11-15T20:37:59", "url": "https://files.pythonhosted.org/packages/82/b4/9eb026a8e62a04512435d3de25c93f7bda51c8b8c7991c1c0be70b5115a6/twofish-0.3.0.tar.gz" } ] }