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

AESUtils证书生成bug #4

Open
blackdog1987 opened this issue Nov 21, 2016 · 1 comment
Open

AESUtils证书生成bug #4

blackdog1987 opened this issue Nov 21, 2016 · 1 comment

Comments

@blackdog1987
Copy link

aesEncryptToBytes和aesDecryptByBytes方法中,生成证书有问题

应该改为

SecureRandom random = SecureRandom.getInstance("SHA1PRNG");
random.setSeed(decryptKey.getBytes());
kgen.init(128, random);

@chenssy89
Copy link
Owner

谢谢指出!明天有时间我看下

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