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

关于针对空串的加密解密 #3

Closed
mengkeer opened this issue Jun 15, 2020 · 0 comments
Closed

关于针对空串的加密解密 #3

mengkeer opened this issue Jun 15, 2020 · 0 comments

Comments

@mengkeer
Copy link

你好,我上次反馈了xxtea-objc对空串的加密有crash的风险
链接如下
#2
目前crash的问题是修复了,但是该库对空串的加密解密与其它端不一致了,我对比了一下java的实现与h5的实现,其它端对空串的加密结果是空串,对空串的解密结果也是空串,但是目前xxtea-objc不是,
xxtea-objc则是无论什么秘钥,空串的加密结果都是AAAAAA==

我想不管是什么语言,这种边界case的处理结果也应该保持一致吧?

@andot andot closed this as completed in 740fc03 Jun 15, 2020
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