{ "info": { "author": "Chad Spensky", "author_email": "chad.spensky@ll.mit.eduasd", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Security" ], "description": "::\n\n _ _ _____ _ _____ _ \n | | | | / ____| | | / ____| | | \n | | | | _____| (___ _ __ ___ __ _ _ __| |_| | __ _ _ __ __| | \n | | | | |______\\___ \\| '_ ` _ \\ / _` | '__| __| | / _` | '__/ _` | \n | |____| |____ ____) | | | | | | (_| | | | |_| |___| (_| | | | (_| | \n |______|______| |_____/|_| |_| |_|\\__,_|_| \\__|\\_____\\__,_|_| \\__,_|\n\n Authors: Chad Spensky (chad.spensky@ll.mit.edu)\n Hongyi Hu (hongyi.hu@ll.mit.edu)\n\nContents\n========\n\n- examples/ Some example scripts on how to use the library to interact\n with various smartcards\n\n- docs/ Contains some useful documents when working with smart cards\n that define some of the APDUs and RIDs.\n\nInstall\n=======\n\n- Install `pyDes `__ python\n library\n\n- Install `pyscard `__ python library\n\n- Install PC/SC >$ sudo apt-get install pcsc-tools pcscd\n\n- To install all of these just run: >$ ./install\\_dependencies.sh\n\nUsage\n=====\n\n- For developing your own smart card application using llsmartcard, see\n template.py\n\n- See ``examples/``\n\nCertificates\n============\n\nThis section discusses how to work with the certificates on the CAC.\n\n- Extract Certificates python cac\\_crypto.py -x test\n\n- Working with certs (Referenced from\n `here `__).\n\n- Encrypt >$ openssl pkeyutl -encrypt -in -pubin -inkey [input public\n key] -out [output file]\n\n- Extract Public Key >$ openssl x509 -inform DER -pubkey -in [input\n certificate] > output.key\n\n- Example using certs:\n\n $ echo \"Hello World!\" > input.txt\n\n $ python cac\\_crypto.py -E -k test/cac/cac\\_pki\\_enc.pub -i\n input.txt -o input\\_encrypted.ssl\n\n $ python cac\\_crypto.py -D -i input\\_encrypted.ssl -c KEY\\_PKI\\_ENC\n -o input\\_decrypted.txt -p 77777777\n\nNotes\n=====\n\n- Certificates are returned in gzipped form. > $ gunzip [cert.gz]\n\n- Certificates are in DER form > $ openssl x509 -inform DER -in [cert]\n > $ openssl x509 -issuer -email -startdate -enddate -inform DER -in\n [cert] > $ openssl x509 -inform DER -noout -text -in [cert]\n\nDisclaimer\n==========\n\n.. raw:: html\n\n

\n\nThis work is sponsored by the Defense Information Systems Agency under\nAir Force Contract #FA8721-05-C-0002. Opinions, interpretations,\nconclusions and recommendations are those of the author and are not\nnecessarily endorsed by the United States Government. \u00a9 2015\nMassachusetts Institute of Technology\n\n.. raw:: html\n\n

", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ph4r05/llsmartcard", "keywords": "", "license": "MIT", "maintainer": "Dusan Klinec", "maintainer_email": "dusan.klinec@gmail.com", "name": "llsmartcard-ph4", "package_url": "https://pypi.org/project/llsmartcard-ph4/", "platform": "", "project_url": "https://pypi.org/project/llsmartcard-ph4/", "project_urls": { "Homepage": "https://github.com/ph4r05/llsmartcard" }, "release_url": "https://pypi.org/project/llsmartcard-ph4/1.1.1/", "requires_dist": null, "requires_python": "", "summary": "Module for easily interacting with smartcards.", "version": "1.1.1" }, "last_serial": 3953961, "releases": { "1.1.0": [ { "comment_text": "", "digests": { "md5": "d3a960a06d18f7741177c06779dd3f10", "sha256": "6882dafcb042f49fb7c87c576294cdfb6c1afbd7e563295fa799d59f7e963a20" }, "downloads": -1, "filename": "llsmartcard-ph4-1.1.0.tar.gz", "has_sig": true, "md5_digest": "d3a960a06d18f7741177c06779dd3f10", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 22502, "upload_time": "2018-06-12T13:43:55", "url": "https://files.pythonhosted.org/packages/76/93/d51ffe7f116caedb21f915d3926f809a84944d4975854f50908cd38a784b/llsmartcard-ph4-1.1.0.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "023d030ff27b4b9048255005fd441d1a", "sha256": "2141e2a428f9df9e45b15beeaad2bc8b87fbe2e1e965d69ddf5105e7f5a7ba7c" }, "downloads": -1, "filename": "llsmartcard-ph4-1.1.1.tar.gz", "has_sig": true, "md5_digest": "023d030ff27b4b9048255005fd441d1a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22458, "upload_time": "2018-06-12T13:46:25", "url": "https://files.pythonhosted.org/packages/77/41/73e1f4227a3de95fc10d95848716917b9985ebc0cdcbe24f5d9db227a47b/llsmartcard-ph4-1.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "023d030ff27b4b9048255005fd441d1a", "sha256": "2141e2a428f9df9e45b15beeaad2bc8b87fbe2e1e965d69ddf5105e7f5a7ba7c" }, "downloads": -1, "filename": "llsmartcard-ph4-1.1.1.tar.gz", "has_sig": true, "md5_digest": "023d030ff27b4b9048255005fd441d1a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22458, "upload_time": "2018-06-12T13:46:25", "url": "https://files.pythonhosted.org/packages/77/41/73e1f4227a3de95fc10d95848716917b9985ebc0cdcbe24f5d9db227a47b/llsmartcard-ph4-1.1.1.tar.gz" } ] }