About java php go in AES encryption and decryption key length AES symmetric encryption algorithm theory problem

Today, efforts to Cao, want to go in a small php function rewrite, but ran into a hole in the aes decrypt the encrypted data!

php mcrypt expansion of (seemingly php7.1 does not support the version of the above) provides aes encryption and decryption:

And Miyao length php aes more than just these three specified length of 128,192,256. As long as no more than 256 will do.

So the php encryption keys pass a 23 * 8 = 184. I do not know that the older generation is ye think! ! !

But to go language "crypto / aes" package:

Limits the length of the bit secret key 162 432 128 192 256 bytes is bit.

And Internet search.

 

 oo Technology is borderless however. . .

But I found a few useful blog for everyone to share:

AES symmetric encryption algorithm theory

JAVA crack AES secret key length limit

golang library implementation using aes encryption and decryption

Who does not know the solution golang length limit Miyao friends can comment, thank you!

 

Guess you like

Origin www.cnblogs.com/kala00k/p/11069712.html