Skip to content

refactor(依赖):移除非必要的Bouncy Castle依赖 - #4153

Merged
binarywang merged 1 commit into
binarywang:developfrom
buaazyl:codex/feature/remove-bouncycastle
Dec 2, 2026
Merged

binarywang merged 1 commit into
binarywang:developfrom
buaazyl:codex/feature/remove-bouncycastle

Conversation

@buaazyl

@buaazyl buaazyl commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

移除非必要的Bouncy Castle依赖
小程序删除旧解密方法,支付使用 JDK 加载 RSA 公钥并保留 PKCS#1 与 SPKI 支持。更新迁移说明,提示公开 API 和传递依赖变化。

小程序删除旧解密方法,支付使用 JDK 加载 RSA 公钥并保留 PKCS#1 与 SPKI 支持。更新迁移说明,提示公开 API 和传递依赖变化。
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-02T07:49:39.204805Z 7f040c5 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7f040c5822

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread README.md Resolved

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues were identified in the dependency cleanup, although builds and tests were not run.

No open issues 🎉

What changed in this PR

本 PR 精简 WxJava 部分模块的 Bouncy Castle 依赖,改用 JDK 加载支付公钥,并说明小程序公开 API 的迁移影响。

主要变更:

  • 移除四个模块的 bcpkix-jdk18on 依赖。
  • 银行卡付款保留 PKCS#1、SPKI 公钥支持,显式指定 OAEP 参数并新增回归测试。
  • 删除小程序旧解密方法,更新测试及 API、传递依赖和 Provider 注册的迁移说明。

本次未运行构建或测试。

File Description
weixin-java-store/​pom.xml 移除 BC 依赖。
weixin-java-pay/​src/​test/​resources/​testng.xml 注册银行卡加密测试。
weixin-java-pay/​src/​test/​java/​com/​github/​binarywang/​wxpay/​service/​impl/​EntPayBankEncryptionTest.java 覆盖两种公钥格式、密文签名及无效公钥。
weixin-java-pay/​src/​main/​java/​com/​github/​binarywang/​wxpay/​service/​impl/​EntPayServiceImpl.java 使用 JDK 加载 RSA 公钥并执行 OAEP 加密。
weixin-java-pay/​pom.xml 移除 BC 依赖。
weixin-java-miniapp/​src/​test/​java/​cn/​binarywang/​wx/​miniapp/​util/​crypt/​WxMaCryptUtilsTest.java 更新保留解密方法的断言,删除旧方法测试。
weixin-java-miniapp/​src/​main/​java/​cn/​binarywang/​wx/​miniapp/​util/​crypt/​WxMaCryptUtils.java 删除 decryptAnotherWay 及相关导入。
weixin-java-miniapp/​pom.xml 移除 BC 依赖。
weixin-java-channel/​pom.xml 移除 BC 依赖。
README.md 补充解密行为、公开 API 和 BC 依赖迁移说明。

Review effort: Balanced

@binarywang
binarywang merged commit 7282320 into binarywang:develop Dec 2, 2026
2 checks passed
@buaazyl
buaazyl deleted the codex/feature/remove-bouncycastle branch December 3, 2026 03:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants