{ "info": { "author": "Infineon Technologies AG", "author_email": "blockchain@infineon.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Console", "Intended Audience :: Developers", "Intended Audience :: Education", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries" ], "description": "# Blockchain Security 2Go starter kit Python Library\n\nThis package provides basic functions to communicate with Infineon's Blockchain Security 2Go \nstarter kit. It abstracts all of the commands available with the starter kit with some simple \nfunctions. \n\nTo get more information about the starter kit go to https://github.com/Infineon/blockchain.\n\n## Getting Started\nTo use this library you need some hardware first:\n* A smart card from Infineon's Blockchain Security 2Go starter kit \n(see [here](https://www.infineon.com/blockchain) for information about how to get it), and\n* a contactless reader to communicate with the contactless smart card. We recommend to use \na reader that is connected via USB (a list is available at \n[ccid.apdu.fr](https://ccid.apdu.fr/select_readers/?features=contactless)). \n\n### Install Prerequisites\nTo use the library you need a Python 3 installation (e.g. from http://python.org or via [Anaconda](https://www.anaconda.com/)). \nThe BlockSec2Go library depends on `pyscard` that requires `swig`. To install `swig` follow the guides at https://github.com/LudovicRousseau/pyscard/blob/master/INSTALL.md or follow the hints below. \n\nOn Windows, we recommend to use the chocolately package manager:\n* Install the chocolately package manager\n* Open a powershell as administrator mode, run\n```\n$ choco install swig\n```\nOn Linux, run\n```\n$ sudo apt-get install swig\n```\nFor Mac systems, we recommend to use homebrew\n```\n$ brew install swig\n```\n\n### Install BlockSec2Go\n\nThen, the fastest way to install the library is to get it via pip\n\n $ pip3 install blocksec2go\n\nRemark: When installing Python 3>=3.4 the installer program `pip` is automatically installed (see https://pip.pypa.io/en/stable/installing/). \n\nThis will install the library, which can be imported as `blocksec2go`.\nIn addition the `blocksec2go` command will be installed which can be used to communicate with \nthe card from the command line.\n\nTo find out more, run\n\n $ blocksec2go --help\n\nThe library is tested with Python 3.7.1 and the Identive Cloud 4700 F Dual Interface reader.\n\n## Usage Example\n### Command Line Tool\nHere is an example of how the command line tool could be used\n\n $ blocksec2go get_card_info\n PIN is: disabled\n\t Card ID (hex): 02058d190004001a002d\n\t Version: v1.0\n\n\t$ blocksec2go set_pin 1234\n\t PUK to unlock card (hex): 5c88ce829a2ed32c\n\n\t$ blocksec2go generate_keypair\n\t Key ID: 1\n\n\t$ blocksec2go get_key_info 1\n\t Remaining signatures with card: 999990\n Remaining signatures with key 1: 100000\n Public key (hex, encoded according to SEC1): 0434cfd6b1bb53fc244d4881cf1f0d3b9aee7b6ac28aad8a1648fc514101961b59fa7fc58751d0dc876589e467a63ed1582e240cd18b98d408470679418a647833\n\n\t$ blocksec2go generate_signature --pin 1234 1 00112233445566778899AABBCCDDEEFF00112233445566778899AABBCCDDEEFF\n\t Remaining signatures with card: 999989\n Remaining signatures with key 1: 99999\n Signature (hex): 3044022049689b91545ba3bc487af7cb7267d19ea4ad8e2e8b093458e06d46837400444702207fe7cd2b6851049afe0f7c4ced0ef35bd9eb5d044c67ed95045b07a10641806c\n\n### Python Library\nThe command line tool is an abstraction of the Python functions that are delivered by this library. Have a look at the implementation of the commands in [blocksec2go/cli](blocksec2go/cli) to see how the functions are used. \n\n\n\n## Testing\n\nTo develop/test, it's best to use virtualenv. It allows for installing packages\nin a \"private\" environment (for details see https://virtualenv.pypa.io/en/latest/)\n(commands intended for Windows in bash, small differences for other OS/shell combinations)\n\n $ virtualenv venv\n $ source ./venv/Scripts/activate\n $ pip install --editable .\n\nYou can now test the library as if it would have been installed.\nTo exit the environment, simply run\n\n $ deactivate\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Infineon/BlockchainSecurity2Go-Python-Library", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "blocksec2go", "package_url": "https://pypi.org/project/blocksec2go/", "platform": "", "project_url": "https://pypi.org/project/blocksec2go/", "project_urls": { "Homepage": "https://github.com/Infineon/BlockchainSecurity2Go-Python-Library" }, "release_url": "https://pypi.org/project/blocksec2go/1.2/", "requires_dist": [ "pyscard", "cryptography" ], "requires_python": "", "summary": "Allow for communication with Infineon's Blockchain Security 2Go starter kit", "version": "1.2" }, "last_serial": 5955604, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "1a742acef700652b9aba4967e0c95f3f", "sha256": "4a3530845796eee1fe25386e08f6583d7e883ac96df302a075f7f0157f301b25" }, "downloads": -1, "filename": "blocksec2go-1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "1a742acef700652b9aba4967e0c95f3f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 17779, "upload_time": "2019-03-13T12:09:24", "url": "https://files.pythonhosted.org/packages/87/c6/de16c82147f6517c4155f2c6146813e38cdf644996570678e6fe132c5854/blocksec2go-1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a1efde901ba8599efc19d00e684fbc4a", "sha256": "84897f5e70d1e1ede2e9d46b6b2715735d45d8b8fffd865c8be5f5b39bbe0328" }, "downloads": -1, "filename": "blocksec2go-1.0.tar.gz", "has_sig": false, "md5_digest": "a1efde901ba8599efc19d00e684fbc4a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12253, "upload_time": "2019-03-13T12:09:26", "url": "https://files.pythonhosted.org/packages/10/f7/8fbd045f40fc543c5af9d6634c8455bf2cc0c4e3d324246afb148623dcb2/blocksec2go-1.0.tar.gz" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "28ec1cf053e4fd4a5a765d8b7cd09e61", "sha256": "6fc307135f41514e8fa7e6e3b2510022110f7cc876558dd6e980d82ec0034ed5" }, "downloads": -1, "filename": "blocksec2go-1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "28ec1cf053e4fd4a5a765d8b7cd09e61", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 18767, "upload_time": "2019-09-18T07:28:27", "url": "https://files.pythonhosted.org/packages/b7/75/bfd597097f71c8c2facaf6207fb91c6667668ba2cb13d9b30b68b433d145/blocksec2go-1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e070a0a0aa5b5cf44897cb2861f55bb7", "sha256": "99a41f692e75fa506b018abe073c0b28c580f3d14d21930f34e2c86e054da1ec" }, "downloads": -1, "filename": "blocksec2go-1.1.tar.gz", "has_sig": false, "md5_digest": "e070a0a0aa5b5cf44897cb2861f55bb7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13532, "upload_time": "2019-09-18T07:28:29", "url": "https://files.pythonhosted.org/packages/db/7b/812dcaabe22c49403a4dd87b36b453698f1c371e32dbecec244e7643b289/blocksec2go-1.1.tar.gz" } ], "1.2": [ { "comment_text": "", "digests": { "md5": "6fe6cee69c3a2311296b043aa89507c1", "sha256": "f943f9f1d73b6c7d3cd94416e11f365809c605c29b23bc249c39f36fb6cc2120" }, "downloads": -1, "filename": "blocksec2go-1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "6fe6cee69c3a2311296b043aa89507c1", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 19578, "upload_time": "2019-10-10T15:46:10", "url": "https://files.pythonhosted.org/packages/cb/47/be984de8f49f90bde338202ec3c73fb0a3bd34370c2e6e0987be0dacc283/blocksec2go-1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "032ba603aa0bfecba28c3d541247d5ee", "sha256": "6e3fcf35cc6e507097a53f6ec4a0bd51267dab32e2f5812c874cabbb2c7daf08" }, "downloads": -1, "filename": "blocksec2go-1.2.tar.gz", "has_sig": false, "md5_digest": "032ba603aa0bfecba28c3d541247d5ee", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14092, "upload_time": "2019-10-10T15:46:13", "url": "https://files.pythonhosted.org/packages/39/95/c6be9f32a2cfc6b401bfc657c76c0e34e679d38430cfbd159da555142283/blocksec2go-1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6fe6cee69c3a2311296b043aa89507c1", "sha256": "f943f9f1d73b6c7d3cd94416e11f365809c605c29b23bc249c39f36fb6cc2120" }, "downloads": -1, "filename": "blocksec2go-1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "6fe6cee69c3a2311296b043aa89507c1", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 19578, "upload_time": "2019-10-10T15:46:10", "url": "https://files.pythonhosted.org/packages/cb/47/be984de8f49f90bde338202ec3c73fb0a3bd34370c2e6e0987be0dacc283/blocksec2go-1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "032ba603aa0bfecba28c3d541247d5ee", "sha256": "6e3fcf35cc6e507097a53f6ec4a0bd51267dab32e2f5812c874cabbb2c7daf08" }, "downloads": -1, "filename": "blocksec2go-1.2.tar.gz", "has_sig": false, "md5_digest": "032ba603aa0bfecba28c3d541247d5ee", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14092, "upload_time": "2019-10-10T15:46:13", "url": "https://files.pythonhosted.org/packages/39/95/c6be9f32a2cfc6b401bfc657c76c0e34e679d38430cfbd159da555142283/blocksec2go-1.2.tar.gz" } ] }