{ "info": { "author": "Arthur de Jong", "author_email": "arthur@arthurdejong.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Intended Audience :: Information Technology", "Intended Audience :: System Administrators", "License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Security :: Cryptography", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: System :: Systems Administration :: Authentication/Directory", "Topic :: Text Processing :: Markup :: XML" ], "description": "Python module for handling PSKC files\n=====================================\n\nA Python module to handle Portable Symmetric Key Container (PSKC) files as\ndefined in `RFC 6030 `_. PSKC files are\nused to transport and provision symmetric keys and key meta data (seed files)\nto different types of crypto modules, commonly one-time password systems or\nother authentication devices.\n\nThis module can be used to extract keys from PSKC files for use in an OTP\nauthentication system. The module can also be used for authoring PSKC files.\n\nThis module should be able to handle most common PSKC files.\n\nhttps://arthurdejong.org/python-pskc/\n\n\nAPI\n---\n\nThe module provides a straightforward API that is mostly geared towards\nparsing existing PSKC files.\n\nExtracting key material from encrypted PSKC files is as simple as:\n\n>>> from pskc import PSKC\n>>> pskc = PSKC('tests/rfc6030/figure7.pskcxml')\n>>> pskc.encryption.derive_key('qwerty')\n>>> for key in pskc.keys:\n... print('%s %s' % (key.serial, str(key.secret.decode())))\n987654321 12345678901234567890\n\nWriting am encrypted PSKC file is as simple as:\n\n>>> pskc = PSKC()\n>>> key = pskc.add_key(\n... id='456', secret='987654321', manufacturer='Manufacturer',\n... algorithm = 'urn:ietf:params:xml:ns:keyprov:pskc:hotp')\n>>> pskc.encryption.setup_pbkdf2('passphrase')\n>>> pskc.write('output.pskcxml')\n\nThe key object has a number of properties. See the pskc.key.Key documentation\nfor details.\n\n\nSecurity considerations\n-----------------------\n\nThis code handles private key material and is written in Python. No\nprecautions have been taken to lock pages in memory to prevent swapping. Also\nno attempt is currently made to securely dispose of memory that may have held\nprivate key material.\n\n\nCopyright\n---------\n\nCopyright (C) 2014-2019 Arthur de Jong\n\nThis library is free software; you can redistribute it and/or\nmodify it under the terms of the GNU Lesser General Public\nLicense as published by the Free Software Foundation; either\nversion 2.1 of the License, or (at your option) any later version.\n\nThis library is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\nLesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public\nLicense along with this library; if not, write to the Free Software\nFoundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA\n02110-1301 USA\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://arthurdejong.org/python-pskc/", "keywords": "PSKC,RFC 6030,key container", "license": "LGPL", "maintainer": "", "maintainer_email": "", "name": "python-pskc", "package_url": "https://pypi.org/project/python-pskc/", "platform": "", "project_url": "https://pypi.org/project/python-pskc/", "project_urls": { "Homepage": "https://arthurdejong.org/python-pskc/" }, "release_url": "https://pypi.org/project/python-pskc/1.1/", "requires_dist": [ "cryptography", "python-dateutil", "defusedxml ; extra == 'defuse'", "lxml ; extra == 'lxml'", "signxml ; extra == 'signature'" ], "requires_python": "", "summary": "Python module for handling PSKC files", "version": "1.1" }, "last_serial": 4803432, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "60bb3213a9bc81bb17cb323f0cc51d21", "sha256": "4a1207b92ff304d69671955730b431df4424eb2f100a641a14a2cc24524b7b54" }, "downloads": -1, "filename": "python-pskc-0.1.tar.gz", "has_sig": true, "md5_digest": "60bb3213a9bc81bb17cb323f0cc51d21", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 32733, "upload_time": "2014-05-23T11:40:57", "url": "https://files.pythonhosted.org/packages/a6/21/673eec8ccabfea890450feeff7e1388286ffae994fe5a59a0ecf2a64e530/python-pskc-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "a472549c6e97d9b7c997fd67a3bafd50", "sha256": "b5087c0ee14558e707901cf7c23869f880ba92a49acfb5f2c765fc7ee4604b33" }, "downloads": -1, "filename": "python-pskc-0.2.tar.gz", "has_sig": true, "md5_digest": "a472549c6e97d9b7c997fd67a3bafd50", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 46505, "upload_time": "2014-06-19T20:37:29", "url": "https://files.pythonhosted.org/packages/5c/17/f77c6d8408221aeef85e865e0892cd8477635e52d5b41f9076f80f0731b5/python-pskc-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "c1e81f15a4cd66664235c4d26bb31be8", "sha256": "c081e7895e7249747574416ebbe6171e080abdf4e4eca9bcd5e4a7c4911ee945" }, "downloads": -1, "filename": "python-pskc-0.3.tar.gz", "has_sig": true, "md5_digest": "c1e81f15a4cd66664235c4d26bb31be8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 54412, "upload_time": "2015-10-07T19:57:15", "url": "https://files.pythonhosted.org/packages/f1/72/0b542f7183952fdc69cfcb7b1c14235d0fd734c361f906b89d6e943ac7ef/python-pskc-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "567369fbd3e2376110e70eff81f0f0a3", "sha256": "de541b01acac2a620fa32067d06bb412e14dab8444a8e9726bdb14903fd006c2" }, "downloads": -1, "filename": "python-pskc-0.4.tar.gz", "has_sig": true, "md5_digest": "567369fbd3e2376110e70eff81f0f0a3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 68353, "upload_time": "2016-03-28T16:09:00", "url": "https://files.pythonhosted.org/packages/46/34/9548f4f97bb47191ed7883875797d6a29a6ca35607f564617abbb4419522/python-pskc-0.4.tar.gz" } ], "0.5": [ { "comment_text": "", "digests": { "md5": "69cb3abce5eccf67f1c853c9d364a961", "sha256": "84799af0e6867d1d0917a13f5aa64ada89c96498b6f99e097ab615e900665491" }, "downloads": -1, "filename": "python-pskc-0.5.tar.gz", "has_sig": true, "md5_digest": "69cb3abce5eccf67f1c853c9d364a961", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 83663, "upload_time": "2017-01-21T18:15:18", "url": "https://files.pythonhosted.org/packages/9e/55/14389ae9ad1dcf67a289ee5241cf2306395407e13f68c85c434a98cf3190/python-pskc-0.5.tar.gz" } ], "1.0": [ { "comment_text": "", "digests": { "md5": "f32088db5398ca6399a8abed7b3bc0c7", "sha256": "31b41c6c6d9f884fb2c63317795dc68487e77d44fdabb4bd28c8f0956eae051e" }, "downloads": -1, "filename": "python-pskc-1.0.tar.gz", "has_sig": true, "md5_digest": "f32088db5398ca6399a8abed7b3bc0c7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 122474, "upload_time": "2017-12-29T17:48:34", "url": "https://files.pythonhosted.org/packages/42/28/e20898d1361d464895cdfdb96febf98298754062ef005543ca7c69f3d442/python-pskc-1.0.tar.gz" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "76d83508aace21615c3f8393a3534cc9", "sha256": "c7c2d86f341515684823f3912f0065dac8715d7b2cf6cbacd2a900c76874c8a9" }, "downloads": -1, "filename": "python_pskc-1.1-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "76d83508aace21615c3f8393a3534cc9", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 53154, "upload_time": "2019-02-10T22:05:42", "url": "https://files.pythonhosted.org/packages/44/a2/1d5a8aca80dc481e29c07df1fe6284483720656e221d15454beaf8871b92/python_pskc-1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4220bef768505b2833097e60d7324576", "sha256": "489938c60a6c8493a619b39854aa5cf49e259ba089fc70e611c018353c88eb83" }, "downloads": -1, "filename": "python-pskc-1.1.tar.gz", "has_sig": true, "md5_digest": "4220bef768505b2833097e60d7324576", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 132672, "upload_time": "2019-02-10T22:05:46", "url": "https://files.pythonhosted.org/packages/93/6f/3045001fa593beb6850a986a72c09bed6960b12ad5b133d90809f268035b/python-pskc-1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "76d83508aace21615c3f8393a3534cc9", "sha256": "c7c2d86f341515684823f3912f0065dac8715d7b2cf6cbacd2a900c76874c8a9" }, "downloads": -1, "filename": "python_pskc-1.1-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "76d83508aace21615c3f8393a3534cc9", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 53154, "upload_time": "2019-02-10T22:05:42", "url": "https://files.pythonhosted.org/packages/44/a2/1d5a8aca80dc481e29c07df1fe6284483720656e221d15454beaf8871b92/python_pskc-1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4220bef768505b2833097e60d7324576", "sha256": "489938c60a6c8493a619b39854aa5cf49e259ba089fc70e611c018353c88eb83" }, "downloads": -1, "filename": "python-pskc-1.1.tar.gz", "has_sig": true, "md5_digest": "4220bef768505b2833097e60d7324576", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 132672, "upload_time": "2019-02-10T22:05:46", "url": "https://files.pythonhosted.org/packages/93/6f/3045001fa593beb6850a986a72c09bed6960b12ad5b133d90809f268035b/python-pskc-1.1.tar.gz" } ] }