{"id":15470940,"url":"https://github.com/chekun/go-wechat-app","last_synced_at":"2025-04-22T12:41:22.235Z","repository":{"id":57498318,"uuid":"93809826","full_name":"chekun/go-wechat-app","owner":"chekun","description":"微信小程序SDK for Go，API调用，数据解密","archived":false,"fork":false,"pushed_at":"2018-06-07T05:39:43.000Z","size":3,"stargazers_count":11,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-19T01:13:33.158Z","etag":null,"topics":["wechat","wechat-sdk","wechat-sdk-go"],"latest_commit_sha":null,"homepage":"","language":"Go","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/chekun.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}},"created_at":"2017-06-09T02:16:58.000Z","updated_at":"2021-12-03T07:13:54.000Z","dependencies_parsed_at":"2022-08-28T17:12:42.423Z","dependency_job_id":null,"html_url":"https://github.com/chekun/go-wechat-app","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chekun%2Fgo-wechat-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chekun%2Fgo-wechat-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chekun%2Fgo-wechat-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chekun%2Fgo-wechat-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chekun","download_url":"https://codeload.github.com/chekun/go-wechat-app/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250242841,"owners_count":21398207,"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":["wechat","wechat-sdk","wechat-sdk-go"],"created_at":"2024-10-02T02:08:00.406Z","updated_at":"2025-04-22T12:41:22.187Z","avatar_url":"https://github.com/chekun.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"微信小程序SDK for Go\n===============================\n\n第一个可用版本，随心使用，注意安全 😄\n\n## 目前功能\n\n- 数据解密\n\n    - 解密 wx.getUserInfo\n    - 解密 wx.getShareInfo\n    - 解密 wx.getWeRunData\n\n- 接口调用\n\n    - todo\n\n## 使用方法\n\n- 数据解密\n\n```golang\n\nimport (\n    \"fmt\"\n    \"github.com/chekun/go-wechat-app/wechat/decrypt\"\n)\n\nfunc main() {\n    decryptor, err := New(\"your-app-id\", \"your-session-key\")\n    if err != nil {\n        fmt.Println(err)//sessionKey不正确\n    }\n\n    if profile := decryptor.Profile( \"your-encrypted-data\", \"your-iv\"); decryptor.Err != nil {\n        fmr.Println(\"Profile 解密失败 - \", decryptor.Err)\n    } else {\n        fmt.Println(profile)\n    }\n\t\n\n    if share := decryptor.Share( \"your-encrypted-data\", \"your-iv\"); decryptor.Err != nil {\n        fmr.Println(\"Share Ticket 解密失败 - \", decryptor.Err)\n    } else {\n        fmt.Println(share)\n    }\n\n    if run := decryptor.Run( \"your-encrypted-data\", \"your-iv\"); decryptor.Err != nil {\n        fmr.Println(\"Run Data 解密失败 - \", decryptor.Err)\n    } else {\n        fmt.Println(run)\n    }\n}\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchekun%2Fgo-wechat-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchekun%2Fgo-wechat-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchekun%2Fgo-wechat-app/lists"}