Skip to content

Commit 0203950

Browse files
authored
🎨 WxCryptUtil#encrypt(String randomStr, String plainText)方法调整为public
WxCryptUtil#encrypt(String randomStr, String plainText)方法调整为public
1 parent fefe039 commit 0203950

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • weixin-java-common/src/main/java/me/chanjar/weixin/common/util/crypto

weixin-java-common/src/main/java/me/chanjar/weixin/common/util/crypto/WxCryptUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ public String encrypt(String plainText) {
166166
* @param plainText 需要加密的明文
167167
* @return 加密后base64编码的字符串
168168
*/
169-
protected String encrypt(String randomStr, String plainText) {
169+
public String encrypt(String randomStr, String plainText) {
170170
ByteGroup byteCollector = new ByteGroup();
171171
byte[] randomStringBytes = randomStr.getBytes(CHARSET);
172172
byte[] plainTextBytes = plainText.getBytes(CHARSET);

0 commit comments

Comments
 (0)