MySQL aes_encrypt layout scheme?

Does anyone know which mysql padding scheme uses for its aes_encrypt?

I did a lot of searches, and all I found was "byte padding". But this is too common!

thanks

+2
source share
4 answers

Data filling is performed according to RFC3369 / PKCS # 5. The keys are filled with zeros. Unfortunately, none of them are documented, but I got information from this error report:

http://bugs.mysql.com/bug.php?id=16713

+4
source

If you don’t know which add-on is being used, decrypt it using NoPadding. Look at what was added at the end of the last block, and this will tell you which fill style is being used.

+1
source

This answer set me on the right path:

fooobar.com/questions/1211282 / ...

So this is really PKCS7, as Mark Adams noted.

Hope this helps someone.

0
source

Source: https://habr.com/ru/post/1211273/


All Articles