Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MySQL aes_encrypt padding scheme?

Does anyone know what padding scheme mysql uses for their aes_encrypt?

I've done a lot of googling, and all I found was "byte padding". But that's too general!

Thanks

like image 633
One Two Three Avatar asked Oct 24 '25 16:10

One Two Three


1 Answers

The data padding is done per RFC3369/PKCS#5. Keys are zero padded. Unfortunately, neither of these are documented, but I got the information from this bug report:

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

like image 188
Eric Petroelje Avatar answered Oct 26 '25 07:10

Eric Petroelje



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!