Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

最大加密字节数 53 ,超出最大字节数需要分组加密; 最大解密字节数 64 ,超出最大字节数需要分组解密 #537

Merged
merged 1 commit into from
Jul 21, 2023

Conversation

aienuo
Copy link
Contributor

@aienuo aienuo commented Jul 20, 2023

解决 加密工具类 javax.crypto.IllegalBlockSizeException: Data must not be longer than 53 bytes

// 测试代码
String url = "jdbc:mysql://192.168.211.131:3306/agile?allowMultiQueries=true&serverTimezone=UTC&characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false";
System.out.println(CryptoUtils.encrypt(url));

@aienuo
Copy link
Contributor Author

aienuo commented Jul 21, 2023

微信图片_20230721082207

@huayanYu huayanYu merged commit 659edc8 into baomidou:master Jul 21, 2023
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.

None yet

2 participants