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

sm4Options4 不同的iv每次加密出来结果都一样 #22

Open
byg0 opened this issue Feb 19, 2024 · 1 comment
Open

sm4Options4 不同的iv每次加密出来结果都一样 #22

byg0 opened this issue Feb 19, 2024 · 1 comment

Comments

@byg0
Copy link

byg0 commented Feb 19, 2024

sm4Options4 不同的iv每次加密出来结果都一样

@byg0
Copy link
Author

byg0 commented Dec 7, 2024

Sm4Options sm4Options4 = new Sm4Options(); sm4Options4.setMode("cbc"); sm4Options4.setIv(IV_KEY); return Sm4.encrypt(str, KEY, sm4Options4);
其中 IV_KEY 修改为什么都可以解密

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

1 participant