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

com.cxytiandi.encrypt.util.AesEncryptUtils 这两行代码有必要吗? #3

Closed
5kywa1ker opened this issue Jun 19, 2018 · 4 comments
Closed

Comments

@5kywa1ker
Copy link

image

@yinjihuan
Copy link
Owner

真仔细,这2行确实没用,是另一种写法才会用到的

@qjyoung
Copy link

qjyoung commented Jun 29, 2018

针对每一个用户生成一个aes key吗,用不同的aes key加解密可以吗,貌似代码里是写死的?

@yinjihuan
Copy link
Owner

可以啊,这就是我在文章后面提高的,通过协商的方式来获取加密的key,通过这种方式就是每个用户都有不同的key,但这样你就必须把key存储起来,我这边是一个通用性质的框架,肯定是采用配置的方式,你可以自己去扩展

@qjyoung
Copy link

qjyoung commented Jun 29, 2018

知道了,存redis

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

3 participants