{"id":22192018,"url":"https://github.com/cryptape/encrypt-server","last_synced_at":"2025-08-26T11:32:13.541Z","repository":{"id":103041507,"uuid":"153576406","full_name":"cryptape/encrypt-server","owner":"cryptape","description":null,"archived":false,"fork":false,"pushed_at":"2018-11-02T05:58:32.000Z","size":22,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-07-31T21:03:03.629Z","etag":null,"topics":["http-server","rust","sm2"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cryptape.png","metadata":{"files":{"readme":"README.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,"zenodo":null}},"created_at":"2018-10-18T06:47:38.000Z","updated_at":"2021-04-05T19:18:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"fdee3886-eb51-4c93-b447-e9c54ca63756","html_url":"https://github.com/cryptape/encrypt-server","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/cryptape/encrypt-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptape%2Fencrypt-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptape%2Fencrypt-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptape%2Fencrypt-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptape%2Fencrypt-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cryptape","download_url":"https://codeload.github.com/cryptape/encrypt-server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptape%2Fencrypt-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272214419,"owners_count":24893201,"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","status":"online","status_checked_at":"2025-08-26T02:00:07.904Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["http-server","rust","sm2"],"created_at":"2024-12-02T12:18:44.898Z","updated_at":"2025-08-26T11:32:13.535Z","avatar_url":"https://github.com/cryptape.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# encrypt-server\nencrypt-server is an HTTP server that provides sm algorithm services\n\n# Quick start\n```shell\n$ git clone git@github.com:cryptape/encrypt-server.git\n$ cargo run -p 8888\n$ curl http://localhost:8888/ping\n```\n\n# API\n\n## Overview\n| Name | Method | Path |\n| ------ | ------ | ------ |\n| Create keypair  | POST | /sm2/keypair |\n| Sign message | POST | /sm2/raw/signature |\n| Sign digest | POST | /sm2/digest/signature |\n| Verify message | POST | /sm2/raw/verification |\n| Verify digest | POST | /sm2/digest/verification |\n\n## Details\n### Create keypair\n`POST /sm2/keypair`\n\nResponse:\n```json\n201 created\n{\n  \"privateKey\":\"0x7b27257ceda1887f1e1aaf04413d58815f492ed532dd4f5af453e05341a020f\",\n  \"publicKey\":\"0x04cfec2eacc1bceef14979384979277221f666638194b644699a0dd37dc6b6fa42a59eb36b3d7cee2dcd68b5532f79c5048f8c7ee1d5824886e552f80220763f9\"\n}\n```\n\n### Sign message\n`POST /sm2/raw/signature`\n\nRequest:\n\n| Name | Type | example |\n| ------ | ------ | ------ |\n| body.privateKey  | Hex | 0xb121c57731f8ccad61192a4da2fef5fa8c4f500d9a7a0c24a07e6d1eb9fc9c1c |\n| body.raw| Hex | 0xfffff |\n\nResponse:\n```json\n201 created\n{\n\t\"signature\":\"0xe468305c4b5779c112bbc2d9215b630b845e89aca4b30790a857db136c50176856717e15f083b3dd00280fc7ccc971acc5cbf841bf43d2c1a1d223d88a24f41a3079049f2d9bbd60b4790b8a9e0b08d395b9b8e2699a858520b78c6eff90ffd3222aeb9d72ebb5ab1bd4a59c0d8b06a2c71c7fcdbbfd350eaed68bfd0dd48db4\"\n}\n```\n\n### Sign digest\n`POST /sm2/digest/signature`\n\nRequest:\n\n| Name | Type | example |\n| ------ | ------ | ------ |\n| body.privateKey  | Hex | 0xb121c57731f8ccad61192a4da2fef5fa8c4f500d9a7a0c24a07e6d1eb9fc9c1c |\n| body.digest| Hash | 0xf7dd52f4014e2852d8d9d9d2914fc87bc3eb9fc4d92434dda73509e416103de3 |\n\nResponse:\n```json\n201 created\n{\n\t\"signature\":\"0xe468305c4b5779c112bbc2d9215b630b845e89aca4b30790a857db136c50176856717e15f083b3dd00280fc7ccc971acc5cbf841bf43d2c1a1d223d88a24f41a3079049f2d9bbd60b4790b8a9e0b08d395b9b8e2699a858520b78c6eff90ffd3222aeb9d72ebb5ab1bd4a59c0d8b06a2c71c7fcdbbfd350eaed68bfd0dd48db4\"\n}\n```\n\n### Verify message\n`POST /sm2/raw/verification`\n\nRequest:\n\n| Name | Type | example |\n| ------ | ------ | ------ |\n| body.publicKey  | Hex | 0x042aa6a8773c2518c475dfa866a30d22293c10c5a4980740d87157642fada33b8da916fc1c1e87cb6bd2f7184679159970a26eed9756e62d9a040cf9dffd2b7e7f |\n| body.raw| Hex | 0xffff |\n| body.signature| Hex | 0xda54f39a22fa05abf2948c252a44d5e90d26db7f435d5215877cb1c6c84e84fea5e5c9e84b220d7035c344a85690c35200ac5a4fa68e6aa4eda9fae12bfbc3312aa6a8773c2518c475dfa866a30d22293c10c5a4980740d87157642fada33b8da916fc1c1e87cb6bd2f7184679159970a26eed9756e62d9a040cf9dffd2b7e7f |\n\nResponse:\n```json\n200 ok\n{\n  \"result\": true\n}\n```\n\n### Verify digest\n`POST /sm2/digest/verification`\n\nRequest:\n\n| Name | Type | example |\n| ------ | ------ | ------ |\n| body.publicKey  | Hex | 0x042aa6a8773c2518c475dfa866a30d22293c10c5a4980740d87157642fada33b8da916fc1c1e87cb6bd2f7184679159970a26eed9756e62d9a040cf9dffd2b7e7f |\n| body.digest| Hash | 0xf7dd52f4014e2852d8d9d9d2914fc87bc3eb9fc4d92434dda73509e416103de3 |\n| body.signature| Hex | 0xda54f39a22fa05abf2948c252a44d5e90d26db7f435d5215877cb1c6c84e84fea5e5c9e84b220d7035c344a85690c35200ac5a4fa68e6aa4eda9fae12bfbc3312aa6a8773c2518c475dfa866a30d22293c10c5a4980740d87157642fada33b8da916fc1c1e87cb6bd2f7184679159970a26eed9756e62d9a040cf9dffd2b7e7f |\n\nResponse:\n```json\n200 ok\n{\n  \"result\": true\n}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcryptape%2Fencrypt-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcryptape%2Fencrypt-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcryptape%2Fencrypt-server/lists"}