擅长:python、mysql、java
<blockquote>
<p>(e.g., the lengths differ by one or there is extra garbage characters on the end of the decrypted string)</p>
</blockquote>
<p>我错过了那一点。你的加密/解密没有问题。听起来像是填充问题。AES总是以128位的块对数据进行编码。如果数据的长度不是128位的倍数,则应在加密之前填充数据,加密后需要删除/忽略填充。在</p>