Name | RealCrypto JSON |
Version |
0.0.1
JSON |
| download |
home_page | None |
Summary | python version of rsa |
upload_time | 2024-11-24 14:51:34 |
maintainer | None |
docs_url | None |
author | zkh |
requires_python | <4.0,>=3.8 |
license | MIT License |
keywords |
cryto
openssl
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Python RSA加解密封装
解除只能用公钥加密的限制
## 示例
```python
from RealRsa import Rsa
pyrsa = Rsa()
pub_key = """
-----BEGIN RSA PUBLIC KEY-----
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
-----END RSA PUBLIC KEY-----
"""
data = "1bff1dfb66a599777dfe4d5edad268d41866e8f82d9604d6b750e2106b292cf2e11690420f515c3fe06d5fe851dc977e1eb3f0f610881659cb8fbf78e3e0dbc260dd7876146fc2b0e24a059fdf4d9540e8b1f9f755006085f491980248c345da03ff50edb77561bc5a304dc9ab658540cfbed4ebf828a351058abe7af508d5a19fa8dce65955d4f535618cba8fa115454fac166bf53784d51f319a56e3de071d766bda8c1683a74f10c9ee873daa710d233b53bcf8cbf7e0f9e48c13d9a1096ee3971c7c35b1b4bf4a4c6cdb4518c75147d5a21ed17fe161075baad4512ab3d4cf994f1bd5ca983fbf255f65b6a5d321ed68999cbff9b7e1b5dc9fc358d7a247"
ret = pyrsa.pub_decrypt(bytes.fromhex(data), pub_key)
print(ret)
ret = pyrsa.pub_encrypt("23342321",pub_key)
print(ret)
```
Raw data
{
"_id": null,
"home_page": null,
"name": "RealCrypto",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.8",
"maintainer_email": null,
"keywords": "cryto, openssl",
"author": "zkh",
"author_email": "404937333@qq.com",
"download_url": "https://files.pythonhosted.org/packages/07/eb/32326faa45e1c308206c9e0165d6df4b0a9fed23b45c0df1676ed303fcc2/realcrypto-0.0.1.tar.gz",
"platform": "Windows",
"description": "# Python RSA\u52a0\u89e3\u5bc6\u5c01\u88c5\n\n\u89e3\u9664\u53ea\u80fd\u7528\u516c\u94a5\u52a0\u5bc6\u7684\u9650\u5236\n\n\n\n## \u793a\u4f8b\n\n```python\nfrom RealRsa import Rsa\n\n\npyrsa = Rsa()\n\npub_key = \"\"\"\n-----BEGIN RSA PUBLIC KEY-----\nxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n-----END RSA PUBLIC KEY-----\n\"\"\"\n\ndata = \"1bff1dfb66a599777dfe4d5edad268d41866e8f82d9604d6b750e2106b292cf2e11690420f515c3fe06d5fe851dc977e1eb3f0f610881659cb8fbf78e3e0dbc260dd7876146fc2b0e24a059fdf4d9540e8b1f9f755006085f491980248c345da03ff50edb77561bc5a304dc9ab658540cfbed4ebf828a351058abe7af508d5a19fa8dce65955d4f535618cba8fa115454fac166bf53784d51f319a56e3de071d766bda8c1683a74f10c9ee873daa710d233b53bcf8cbf7e0f9e48c13d9a1096ee3971c7c35b1b4bf4a4c6cdb4518c75147d5a21ed17fe161075baad4512ab3d4cf994f1bd5ca983fbf255f65b6a5d321ed68999cbff9b7e1b5dc9fc358d7a247\"\n\nret = pyrsa.pub_decrypt(bytes.fromhex(data), pub_key)\nprint(ret)\n\nret = pyrsa.pub_encrypt(\"23342321\",pub_key)\nprint(ret)\n```\n",
"bugtrack_url": null,
"license": "MIT License",
"summary": "python version of rsa",
"version": "0.0.1",
"project_urls": null,
"split_keywords": [
"cryto",
" openssl"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "79d8bed978064c20146a0d27be7073709a40a8715bdd6778a5bfd31562b947cf",
"md5": "880dcb8046711304644c2f989a00cd51",
"sha256": "12c5f53d16d1103bc0c74f8e4d74aa615dbd538e066a4f4a41a33fb3c11d578d"
},
"downloads": -1,
"filename": "RealCrypto-0.0.1-cp310-cp310-manylinux_2_28_x86_64.whl",
"has_sig": false,
"md5_digest": "880dcb8046711304644c2f989a00cd51",
"packagetype": "bdist_wheel",
"python_version": "cp310",
"requires_python": "<4.0,>=3.8",
"size": 2368291,
"upload_time": "2024-11-24T14:51:17",
"upload_time_iso_8601": "2024-11-24T14:51:17.027357Z",
"url": "https://files.pythonhosted.org/packages/79/d8/bed978064c20146a0d27be7073709a40a8715bdd6778a5bfd31562b947cf/RealCrypto-0.0.1-cp310-cp310-manylinux_2_28_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "2fd2ce1c4d4e646d0c1f52edfcf1ce7974265f7357c8982787560365fcf9f4cd",
"md5": "79f02b26b0f9aa938a236c72c2adea6d",
"sha256": "b6641fe84493c4576817e1198328f94b61dce8b7e99a3d12503294e57e907292"
},
"downloads": -1,
"filename": "RealCrypto-0.0.1-cp310-cp310-win_amd64.whl",
"has_sig": false,
"md5_digest": "79f02b26b0f9aa938a236c72c2adea6d",
"packagetype": "bdist_wheel",
"python_version": "cp310",
"requires_python": "<4.0,>=3.8",
"size": 42147,
"upload_time": "2024-11-24T14:51:19",
"upload_time_iso_8601": "2024-11-24T14:51:19.280791Z",
"url": "https://files.pythonhosted.org/packages/2f/d2/ce1c4d4e646d0c1f52edfcf1ce7974265f7357c8982787560365fcf9f4cd/RealCrypto-0.0.1-cp310-cp310-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "dddf9fad48d021c3d67ce1cf2e2d2b7058f32574e3188c09062597356047d7ad",
"md5": "d287bbfef6943d20db1b487b86908f66",
"sha256": "aabac7f8ac2ecddbfeee23752b5d43c71ce1b48ab8552a4a3b5aae68ee255941"
},
"downloads": -1,
"filename": "RealCrypto-0.0.1-cp311-cp311-manylinux_2_28_x86_64.whl",
"has_sig": false,
"md5_digest": "d287bbfef6943d20db1b487b86908f66",
"packagetype": "bdist_wheel",
"python_version": "cp311",
"requires_python": "<4.0,>=3.8",
"size": 2368379,
"upload_time": "2024-11-24T14:51:21",
"upload_time_iso_8601": "2024-11-24T14:51:21.207236Z",
"url": "https://files.pythonhosted.org/packages/dd/df/9fad48d021c3d67ce1cf2e2d2b7058f32574e3188c09062597356047d7ad/RealCrypto-0.0.1-cp311-cp311-manylinux_2_28_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "68dca27fd33a422548b42a853e904891ffbd97a86a1a4940fad4e56e7f4c09ee",
"md5": "b91d9e378da033618e757fb0f8c27342",
"sha256": "32995092c219d5ee0effdb6844112e251e26c46b7c86c452fd9175070c1cc0cd"
},
"downloads": -1,
"filename": "RealCrypto-0.0.1-cp311-cp311-win_amd64.whl",
"has_sig": false,
"md5_digest": "b91d9e378da033618e757fb0f8c27342",
"packagetype": "bdist_wheel",
"python_version": "cp311",
"requires_python": "<4.0,>=3.8",
"size": 42244,
"upload_time": "2024-11-24T14:51:23",
"upload_time_iso_8601": "2024-11-24T14:51:23.158358Z",
"url": "https://files.pythonhosted.org/packages/68/dc/a27fd33a422548b42a853e904891ffbd97a86a1a4940fad4e56e7f4c09ee/RealCrypto-0.0.1-cp311-cp311-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "8691ec00e58dfbc821ee9805a111a6620c0c579c2532852cefee7defa0cb2b34",
"md5": "618743d8a04c3b688b9754bd2e8aeb21",
"sha256": "a33119f07df9da42894f12467288653a3ac390523006a5f71cf8b0afed427b63"
},
"downloads": -1,
"filename": "RealCrypto-0.0.1-cp312-cp312-manylinux_2_28_x86_64.whl",
"has_sig": false,
"md5_digest": "618743d8a04c3b688b9754bd2e8aeb21",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": "<4.0,>=3.8",
"size": 2368442,
"upload_time": "2024-11-24T14:51:24",
"upload_time_iso_8601": "2024-11-24T14:51:24.283271Z",
"url": "https://files.pythonhosted.org/packages/86/91/ec00e58dfbc821ee9805a111a6620c0c579c2532852cefee7defa0cb2b34/RealCrypto-0.0.1-cp312-cp312-manylinux_2_28_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "115c016338dcdf2713e289820bb2019553a4f38df72425d8ff372ed09b8aa711",
"md5": "63e0750490ef71854164e0a916b1bb5e",
"sha256": "5731536d6c5a30905eee3a477ab07f74d12ed0dfca88358a90ddf0c4a1eae7c3"
},
"downloads": -1,
"filename": "RealCrypto-0.0.1-cp312-cp312-win_amd64.whl",
"has_sig": false,
"md5_digest": "63e0750490ef71854164e0a916b1bb5e",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": "<4.0,>=3.8",
"size": 42123,
"upload_time": "2024-11-24T14:51:26",
"upload_time_iso_8601": "2024-11-24T14:51:26.633624Z",
"url": "https://files.pythonhosted.org/packages/11/5c/016338dcdf2713e289820bb2019553a4f38df72425d8ff372ed09b8aa711/RealCrypto-0.0.1-cp312-cp312-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "66e186a3b87dc329b9f083bc0fe10cb7011717a825bb15fe8c1ef1c8d4c71dab",
"md5": "08062a39ccce0b3cb31261f630d57209",
"sha256": "085c08927a642bea94f66ab6d1a185122eb3bde0f4cea0df6fc970791c00d5dd"
},
"downloads": -1,
"filename": "RealCrypto-0.0.1-cp38-cp38-manylinux_2_28_x86_64.whl",
"has_sig": false,
"md5_digest": "08062a39ccce0b3cb31261f630d57209",
"packagetype": "bdist_wheel",
"python_version": "cp38",
"requires_python": "<4.0,>=3.8",
"size": 2639107,
"upload_time": "2024-11-24T14:51:27",
"upload_time_iso_8601": "2024-11-24T14:51:27.765089Z",
"url": "https://files.pythonhosted.org/packages/66/e1/86a3b87dc329b9f083bc0fe10cb7011717a825bb15fe8c1ef1c8d4c71dab/RealCrypto-0.0.1-cp38-cp38-manylinux_2_28_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "e8d7abc8630062854ac877b88309e502b0e48864b1bfda03d346bf769cdb3373",
"md5": "1ef97f498fde0ce13d9b6fa60def3f6e",
"sha256": "752a9999be19f61a7e77578dad8847b85001a4fd65e64f8c683e532425914c53"
},
"downloads": -1,
"filename": "RealCrypto-0.0.1-cp38-cp38-win_amd64.whl",
"has_sig": false,
"md5_digest": "1ef97f498fde0ce13d9b6fa60def3f6e",
"packagetype": "bdist_wheel",
"python_version": "cp38",
"requires_python": "<4.0,>=3.8",
"size": 42851,
"upload_time": "2024-11-24T14:51:29",
"upload_time_iso_8601": "2024-11-24T14:51:29.879320Z",
"url": "https://files.pythonhosted.org/packages/e8/d7/abc8630062854ac877b88309e502b0e48864b1bfda03d346bf769cdb3373/RealCrypto-0.0.1-cp38-cp38-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "bdc699f23085fc5f794cefdbf99261baf20d41eab79b9974d437c4b8d3d7fed3",
"md5": "2e729b465a2d5f11c92c95a4dad6cdf0",
"sha256": "b7fd58674e12f4bc75cdc68ec1d5a1910ed19ddd1f56e87eddbeb72d53323666"
},
"downloads": -1,
"filename": "RealCrypto-0.0.1-cp39-cp39-manylinux_2_28_x86_64.whl",
"has_sig": false,
"md5_digest": "2e729b465a2d5f11c92c95a4dad6cdf0",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": "<4.0,>=3.8",
"size": 2368756,
"upload_time": "2024-11-24T14:51:31",
"upload_time_iso_8601": "2024-11-24T14:51:31.631582Z",
"url": "https://files.pythonhosted.org/packages/bd/c6/99f23085fc5f794cefdbf99261baf20d41eab79b9974d437c4b8d3d7fed3/RealCrypto-0.0.1-cp39-cp39-manylinux_2_28_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "638213f9f3291b58453da9ad82ed6c785fe6906b32c970c7f62f9ab315d4e79d",
"md5": "5153ede4e5e07ae7b969929d6865d430",
"sha256": "d4d480a16891cecef3a1810a42de8da12d7abe6afb3e791b0738e074d823d0c7"
},
"downloads": -1,
"filename": "RealCrypto-0.0.1-cp39-cp39-win_amd64.whl",
"has_sig": false,
"md5_digest": "5153ede4e5e07ae7b969929d6865d430",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": "<4.0,>=3.8",
"size": 42713,
"upload_time": "2024-11-24T14:51:33",
"upload_time_iso_8601": "2024-11-24T14:51:33.595088Z",
"url": "https://files.pythonhosted.org/packages/63/82/13f9f3291b58453da9ad82ed6c785fe6906b32c970c7f62f9ab315d4e79d/RealCrypto-0.0.1-cp39-cp39-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "07eb32326faa45e1c308206c9e0165d6df4b0a9fed23b45c0df1676ed303fcc2",
"md5": "5c83322cc6365fa55c70a44b0cbb71f6",
"sha256": "c2b8fd72805c6a30d396cf8611e4e89af82ee21df2bd504df419d4bc063fa2cd"
},
"downloads": -1,
"filename": "realcrypto-0.0.1.tar.gz",
"has_sig": false,
"md5_digest": "5c83322cc6365fa55c70a44b0cbb71f6",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.8",
"size": 74353,
"upload_time": "2024-11-24T14:51:34",
"upload_time_iso_8601": "2024-11-24T14:51:34.641421Z",
"url": "https://files.pythonhosted.org/packages/07/eb/32326faa45e1c308206c9e0165d6df4b0a9fed23b45c0df1676ed303fcc2/realcrypto-0.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-24 14:51:34",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "realcrypto"
}