🎨 WxCryptUtil#encrypt(String randomStr, String plainText)方法调整为public

WxCryptUtil#encrypt(String randomStr, String plainText)方法调整为public
This commit is contained in:
721806280 2021-03-19 16:54:48 +08:00 committed by GitHub
parent fefe039e95
commit 0203950f4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -166,7 +166,7 @@ public class WxCryptUtil {
* @param plainText 需要加密的明文
* @return 加密后base64编码的字符串
*/
protected String encrypt(String randomStr, String plainText) {
public String encrypt(String randomStr, String plainText) {
ByteGroup byteCollector = new ByteGroup();
byte[] randomStringBytes = randomStr.getBytes(CHARSET);
byte[] plainTextBytes = plainText.getBytes(CHARSET);