{ "info": { "author": "G. B. Versiani", "author_email": "guibv@yahoo.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Communications :: Email", "Topic :: Security :: Cryptography", "Topic :: Software Development :: Libraries" ], "description": "=====================\nPython S/MIME Toolkit\n=====================\n\n.. warning::\n This package is pure fork version from https://github.com/balena/python-smime with immediate release version which contains some necessary refactoring.\n All credits go to original Author(s).\n Publisher of this fork version (Md Nazrul Islam) doest not reserve any Copyright rights.\n\nThis library implements a S/MIME handler. It supports only S/MIME messages\nencryption using a public RSA key, in AES128-CBC, AES192-CBC or AES256-CBC\nmodes.\n\nThe ASN.1 implementation does not depend on pyasn1, as it showed too broken for\ncreating and reading CMS (Cryptographic Message Syntax). Instead, the\n`asn1crypto`_ was used in this project.\n\nThis implementation does not use the deprecated `pycrypto` anymore; instead it\nwas switched to the more modern `cryptography` library. It is not 'pure python'\nanymore (because of the latter dependency), but at least works.\n\n\nRequirements\n------------\n\n* Python 2.7 or Python 3.5+\n* cryptography\n* asn1crypto\n\n\nExample\n-------\n\nThe code below loads Alice's public key in PEM format and uses it to encrypt\nthe e-mail in S/MIME format::\n\n import sys\n import smime\n\n message = [\n 'To: \"Alice\" ',\n 'From: \"Bob\" ',\n 'Subject: A message from python',\n '',\n 'Now you see me.'\n ]\n\n with open('alice-public-key.pem', 'rb') as pem:\n print(smime.encrypt('\\n'.join(message), pem.read()))\n\nOutput::\n\n To: \"Alice\" \n From: \"Bob\" \n Subject: A message from python\n MIME-Version: 1.0\n Content-Type: application/pkcs7-mime; smime-type=enveloped-data; name=smime.p7m\n Content-Transfer-Encoding: base64\n Content-Disposition: attachment; filename=smime.p7m\n\n \n\nThe same can be decrypted using OpenSSL from the command line::\n\n $ openssl smime -decrypt -in smime.p7m -inkey alice-private-key.pem\n\nOpenSSL expects that the `smime.p7m` file above should be in DER or PEM format.\nThe latter should be enclosed in `-----BEGIN PKCS7-----` and `-----END\nPKCS7-----` and the content should be in base64 encoding, just like the output\nof the command above. Example::\n\n -----BEGIN PKCS7-----\n MIIBdgYJKoZIhvcNAQcDoIIBZzCCAWMCAQAxgb4wgbsCAQAwJjASMRAwDgYDVQQD\n EwdDYXJsUlNBAhBGNGvHgABWvBHTbi7EELOwMAsGCSqGSIb3DQEBAQSBgCVAQwNg\n LmJ5ESYxOM1YbOLz2gvzWY1Fk+LZZiylYe7+o1/e/MjtzNwhnu+8vziFwHbXEH1Y\n jndIbUxiLyXb3omtNDunRICQin5bdo6BI7oE0MufUSqMjk0YUk8UQeNCiUfK89PR\n RfDclb1/sM3XZ7mUJa2OzpnuQIWec3MuJ3k4MIGcBgkqhkiG9w0BBwEwHQYJYIZI\n AWUDBAEqBBCVZVOt2lxSzmd+Ti1M372xgHDR0+ToLk1MJeTTtmJdnnNNH6631PN0\n i3NJeJBKDDs4onI8xywqFtJP0of6GPoTGV/7D2vkgO2+jhCBTrzjYczbdOhh6Z5X\n o0i/81NPSoaLhrfwKMQvT7sXX7c9YdbTjyglyGqhXUN8h+mIRlP9IStD\n -----END PKCS7-----\n\nRemember that the above formatting serves only for the purpose of testing the\nencryption with OpenSSL. Do not make such enclosing in e-mails.\n\n\nLicense\n=======\n\nThis software is licensed under the Apache License 2.0. See the LICENSE file in\nthe top distribution directory for the full license text.\n\n\nVersioning\n==========\n\nThis software follows `Semantic Versioning`_\n\n\n.. _asn1crypto: https://github.com/wbond/asn1crypto\n.. _Semantic Versioning: http://semver.org/\n\n\n=======\nCHANGES\n=======\n\n0.1.0b1 (2019-01-06)\n--------------------\n\n- Initial release.", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/balena/python-smime", "keywords": "smime cryptography email", "license": "Apache License (2.0)", "maintainer": "", "maintainer_email": "", "name": "smime-py23", "package_url": "https://pypi.org/project/smime-py23/", "platform": "all", "project_url": "https://pypi.org/project/smime-py23/", "project_urls": { "Homepage": "https://github.com/balena/python-smime" }, "release_url": "https://pypi.org/project/smime-py23/0.1.0b1/", "requires_dist": null, "requires_python": "", "summary": "Python S/MIME Toolkit", "version": "0.1.0b1" }, "last_serial": 4665422, "releases": { "0.1.0b1": [ { "comment_text": "", "digests": { "md5": "e6f2dc5be2eaa4ff6623f42c813c1a41", "sha256": "140482a271904dcf2e12439397fb6d737300c2fdac0adf407060a5b5c1fbf5fc" }, "downloads": -1, "filename": "smime_py23-0.1.0b1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e6f2dc5be2eaa4ff6623f42c813c1a41", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 22221, "upload_time": "2019-01-06T11:55:57", "url": "https://files.pythonhosted.org/packages/a7/36/a5d12a3973bade2e979123557cf072142f054e67c8d9c932e6a8dd7e2455/smime_py23-0.1.0b1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5359226e83a3d433e561fd47a7e22bbf", "sha256": "e4a736d2cbfdeda9717dacd5f3e7a1f785a0e00a59d38906fb14444968111e66" }, "downloads": -1, "filename": "smime-py23-0.1.0b1.tar.gz", "has_sig": false, "md5_digest": "5359226e83a3d433e561fd47a7e22bbf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 93586, "upload_time": "2019-01-06T11:55:54", "url": "https://files.pythonhosted.org/packages/0b/29/35c7d188b35af6819301b2909581d258e712df60c965f4ee50ac01a0f99d/smime-py23-0.1.0b1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e6f2dc5be2eaa4ff6623f42c813c1a41", "sha256": "140482a271904dcf2e12439397fb6d737300c2fdac0adf407060a5b5c1fbf5fc" }, "downloads": -1, "filename": "smime_py23-0.1.0b1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e6f2dc5be2eaa4ff6623f42c813c1a41", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 22221, "upload_time": "2019-01-06T11:55:57", "url": "https://files.pythonhosted.org/packages/a7/36/a5d12a3973bade2e979123557cf072142f054e67c8d9c932e6a8dd7e2455/smime_py23-0.1.0b1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5359226e83a3d433e561fd47a7e22bbf", "sha256": "e4a736d2cbfdeda9717dacd5f3e7a1f785a0e00a59d38906fb14444968111e66" }, "downloads": -1, "filename": "smime-py23-0.1.0b1.tar.gz", "has_sig": false, "md5_digest": "5359226e83a3d433e561fd47a7e22bbf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 93586, "upload_time": "2019-01-06T11:55:54", "url": "https://files.pythonhosted.org/packages/0b/29/35c7d188b35af6819301b2909581d258e712df60c965f4ee50ac01a0f99d/smime-py23-0.1.0b1.tar.gz" } ] }