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

为什么AES中的key和iv要使用硬编码? #2462

Closed
GuXingFei opened this issue Apr 13, 2021 · 1 comment
Closed

为什么AES中的key和iv要使用硬编码? #2462

GuXingFei opened this issue Apr 13, 2021 · 1 comment

Comments

@GuXingFei
Copy link

版本号:2.4.3
问题描述:jeecg-boot/jeecg-boot/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/common/util/encryption/EncryptedString.java 该类中的key和iv为什么不采用动态生成的方式呢?
截图&代码:

public class EncryptedString {

public static  String key = "1234567890adbcde";//长度为16个字符

public static  String iv  = "1234567890hjlkew";//长度为16个字符

}

友情提示: 未按格式要求发帖,会直接删掉。

@zhangdaiscott
Copy link
Member

这块逻辑废弃了,没有用的了

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

No branches or pull requests

2 participants