-
Notifications
You must be signed in to change notification settings - Fork 69
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 encryption uses CBC or ECB mode, when the padding is PKCS5, the encrypted content is a multiple of 16 and will panic #19
Comments
遇到了同样的问题,AES/ECB/PKCS5 模式下,加密串的长度超过16 就会panic。 |
Encountered the same problem. In AES/ECB/PKCS5 mode, if the length of the encrypted string exceeds 16, it will panic. |
https://github.com/golang-module/dongle/blob/main/cipher.go#L142 这里第二个参数应该传16而不是8 |
https://github.com/golang-module/dongle/blob/main/cipher.go#L142 The second parameter here should be passed 16 instead of 8 |
Fixed: AES/ECB/PCKS5padding panic #19
请尽快发版,这是aes加密模块的重大bug,此功能现在实际不可用 |
Please release the version as soon as possible. This is a major bug in the aes encryption module. This function is not actually available now. |
|
|
v1.0.0 has been fixed and released |
Hello,
I encountered an issue with the following code:
golang version: go version go1.20.5
dongle version: v0.2.8
I expected to get:
But I actually get:
Thanks!
The text was updated successfully, but these errors were encountered: