{ "info": { "author": "\u5f20\u534f\u6d9b", "author_email": "zxt502838517@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "### \u9762\u5411\u6b63\u65b9\u6559\u52a1\u4f7f\u7528\u7684 rsa \u52a0\u5bc6\u65b9\u6cd5\u7684 Python \u5b9e\u73b0\n\n## \u57fa\u672c\u4f7f\u7528\n\n### \u5b89\u88c5\n\n```\npip install PyRsa\n```\n\n### \u57fa\u672c\u4f7f\u7528\n\n\u4f7f\u7528 RsaKey \u6a21\u5757\n\n\u7531\u4e8e\u672c\u6a21\u5757\u662f\u9762\u5411\u6b63\u65b9\u6559\u52a1\u7684\u52a0\u5bc6\uff0c\u56e0\u6b64 modulus \u957f\u5ea6\u5e94\u4e3a 172\uff1b\u5982\u679c\u5355\u7eaf\u662f\u52a0\u5bc6\u7740\u73a9\u7684\u8bdd\uff0c\u90a3\u4e48 modulus \u4e0e pre_psw \u4e24\u4e2a\u53c2\u6570\u7684\u957f\u5ea6\u5219\u6709\u6240\u9650\u5236\uff0c\u5927\u6982\u5c31\u662f\n\n```\nmodulus = int(psw / 3) + 15 + psw\n```\n\n\u561b\uff0c\u8c01\u4f1a\u8fd9\u4e48\u65e0\u804a\u5e72\u8fd9\u4e8b\u513f\u5462\n\n```\n>>> from PyRsa.pyrsa import RsaKey\n>>> from PyRsa.pyb64 import Base64\n>>> modulus = \"AJftLhHzsQPu1LwCgOR41hRKn4tbaD/ehyZKiBWDYCpaualtMyJIT0SzBl07O2NwjxI8uwr82SMvEW9iiSEoBylHOWNnEzyOYwXb29xMo+D4LTVqMX7NkAliIqH+wOSA1g0DVxmcQWCtGVI4vDUnGIN8tYPlxc9NIXN5zO0HwqKn\"\n>>> exponent = 'AQAB'\n>>> rsakey.set_public(Base64().b64tohex(modulus), Base64().b64tohex(exponent))\n>>> psw = '1234567890'\n>>> en_psw = Base64().hex2b64(rsakey.encrypt(pre_psw))\n```\n\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/hibiscustoyou/pyrsa", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "PyRsa", "package_url": "https://pypi.org/project/PyRsa/", "platform": "", "project_url": "https://pypi.org/project/PyRsa/", "project_urls": { "Homepage": "https://github.com/hibiscustoyou/pyrsa" }, "release_url": "https://pypi.org/project/PyRsa/1.0.2/", "requires_dist": null, "requires_python": "", "summary": "python enables rsa encryption", "version": "1.0.2" }, "last_serial": 5975251, "releases": { "1.0.1": [ { "comment_text": "", "digests": { "md5": "222c711e6a65f8642203f2c1ac712e3e", "sha256": "5c37742cbbec9edc46f63fe6acc0de21632d9a2bc80d76ef927eae4e4f48e5ae" }, "downloads": -1, "filename": "PyRsa-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "222c711e6a65f8642203f2c1ac712e3e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 11018, "upload_time": "2019-10-10T17:00:17", "url": "https://files.pythonhosted.org/packages/d9/72/84981abee331c6dbaca2aefca780485cda8c9b4a10e3ae4c0c9b192740ca/PyRsa-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0ac93703b81ad0e542e004e3fe5bb468", "sha256": "6a1df43459406534a76d7732d5db36c421d6fb829c667382033886461bf3b074" }, "downloads": -1, "filename": "PyRsa-1.0.1.tar.gz", "has_sig": false, "md5_digest": "0ac93703b81ad0e542e004e3fe5bb468", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9145, "upload_time": "2019-10-10T17:00:20", "url": "https://files.pythonhosted.org/packages/55/7b/6e52fc9a6d06f2872c204aa3e297f2aaefc8cc5aa2564e9c9630f55dde19/PyRsa-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "9f05f55d915e2c2dc818e50646445b65", "sha256": "ef3dd88c3a0045c62c1486cb57705151e7053b54c5bd520aa5c2a9e408fb964b" }, "downloads": -1, "filename": "PyRsa-1.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "9f05f55d915e2c2dc818e50646445b65", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 11025, "upload_time": "2019-10-15T07:18:49", "url": "https://files.pythonhosted.org/packages/91/61/ec2fee5b9c16720719a2d0861312bce95360d3c257fc607050f25593a3f6/PyRsa-1.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7863f1ca65b45aea4723ae6108f8d80d", "sha256": "283825382f1da1523ea23f914d34dd343184c66d0ea77ea46628ab1bbeaa8d1c" }, "downloads": -1, "filename": "PyRsa-1.0.2.tar.gz", "has_sig": false, "md5_digest": "7863f1ca65b45aea4723ae6108f8d80d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9143, "upload_time": "2019-10-15T07:18:51", "url": "https://files.pythonhosted.org/packages/d3/f5/3f91bf49bbbe4cb2a3914b844ce85f9da315ddd81b48018432f08fed0281/PyRsa-1.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9f05f55d915e2c2dc818e50646445b65", "sha256": "ef3dd88c3a0045c62c1486cb57705151e7053b54c5bd520aa5c2a9e408fb964b" }, "downloads": -1, "filename": "PyRsa-1.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "9f05f55d915e2c2dc818e50646445b65", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 11025, "upload_time": "2019-10-15T07:18:49", "url": "https://files.pythonhosted.org/packages/91/61/ec2fee5b9c16720719a2d0861312bce95360d3c257fc607050f25593a3f6/PyRsa-1.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7863f1ca65b45aea4723ae6108f8d80d", "sha256": "283825382f1da1523ea23f914d34dd343184c66d0ea77ea46628ab1bbeaa8d1c" }, "downloads": -1, "filename": "PyRsa-1.0.2.tar.gz", "has_sig": false, "md5_digest": "7863f1ca65b45aea4723ae6108f8d80d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9143, "upload_time": "2019-10-15T07:18:51", "url": "https://files.pythonhosted.org/packages/d3/f5/3f91bf49bbbe4cb2a3914b844ce85f9da315ddd81b48018432f08fed0281/PyRsa-1.0.2.tar.gz" } ] }