Decrypt an AES encoded message (encrypted in Python) in Java
问题 I want to decrypt an AES encrypted message in Java. I’ve been trying various Algorithm/Mode/Padding options from the standard library and from BouncyCastle. No luck :-( The encrypting entity is written in Python and is already in production. Encrypted messages have already gone out, so I cannot easily change that part. The Python code looks like this: from Crypto.Cipher import AES import base64 import os import sys BLOCK_SIZE = 16 PADDING = '\f' pad = lambda s: s + (BLOCK_SIZE - len(s) %