Open xueyc1f opened 1 year ago
遇到了同样的问题,AES/ECB/PKCS5 模式下,加密串的长度超过16 就会panic。
The issue body's language is not English, it has been automatically translated, please use English next time. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
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
The issue body's language is not English, it has been automatically translated, please use English next time. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
https://github.com/golang-module/dongle/blob/main/cipher.go#L142
The second parameter here should be passed 16 instead of 8
请尽快发版,这是aes加密模块的重大bug,此功能现在实际不可用
The issue body's language is not English, it has been automatically translated, please use English next time. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
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.
请尽快发版,这是aes加密模块的重大bug,此功能现在实际不可用
PKCS5
是 PKCS7
的一种特例,先用 PKCS7
传入16 来取代 PKCS5
The issue body's language is not English, it has been automatically translated, please use English next time. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
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.
PKCS5
is a special case of PKCS7
. First use PKCS7
to pass in 16 to replace PKCS5
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!