{"id":19484411,"url":"https://github.com/funnygeeker/micropython-easyrsa","last_synced_at":"2026-04-11T02:56:03.827Z","repository":{"id":210173878,"uuid":"725919103","full_name":"funnygeeker/micropython-easyrsa","owner":"funnygeeker","description":"Simple RSA encryption implementation (with limitations)  （有缺陷）简单的 RSA 加密实现","archived":false,"fork":false,"pushed_at":"2023-12-27T15:51:02.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-08T07:44:22.370Z","etag":null,"topics":["esp32","esp8266","micropython","rsa"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/funnygeeker.png","metadata":{"files":{"readme":"README.ZH-CN.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-01T06:27:53.000Z","updated_at":"2024-05-01T11:27:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"4e939324-c8a8-429b-bc7f-7426deabac8f","html_url":"https://github.com/funnygeeker/micropython-easyrsa","commit_stats":null,"previous_names":["funnygeeker/micropython-easyrsa"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funnygeeker%2Fmicropython-easyrsa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funnygeeker%2Fmicropython-easyrsa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funnygeeker%2Fmicropython-easyrsa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funnygeeker%2Fmicropython-easyrsa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/funnygeeker","download_url":"https://codeload.github.com/funnygeeker/micropython-easyrsa/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240720767,"owners_count":19846814,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["esp32","esp8266","micropython","rsa"],"created_at":"2024-11-10T20:21:22.403Z","updated_at":"2026-04-11T02:56:03.744Z","avatar_url":"https://github.com/funnygeeker.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[English (英语)](./README.md)\n### micropython-easyrsa\n- （有缺陷）简单的 RSA 加密实现\n- 仅用于学习用途，不适合用于生产环境\n- 目前可以在 Python 上面加密和解密，或者，使用 Python 加密，在 MicroPython 上面进行解密\n\n### 示例代码\n```python\nfrom lib.easyrsa import EasyRSA\n# 示例用法\nrsa = EasyRSA(256)\npublic_key, private_key = rsa.generate_keys()\n\n# 保存公钥和私钥到文件\nrsa.save_key_to_file(public_key, \"public_key.txt\")\nrsa.save_key_to_file(private_key, \"private_key.txt\")\n\n# 从文件加载公钥和私钥\nloaded_public_key = rsa.load_key_from_file(\"public_key.txt\")\nloaded_private_key = rsa.load_key_from_file(\"private_key.txt\")\n\n# 加密\nmessage = b\"Hello, World!\"\nciphertext = rsa.encrypt(message, loaded_public_key)\nprint(\"Message:\", message)\nprint(\"Encrypt:\", ciphertext)\nprint('Decrypt:', rsa.decrypt(ciphertext, private_key))\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffunnygeeker%2Fmicropython-easyrsa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffunnygeeker%2Fmicropython-easyrsa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffunnygeeker%2Fmicropython-easyrsa/lists"}