Encrypt in python and decrypt in Java with AES-CFB
I am aware of a question very similar to this ( How do I encrypt in Python and decrypt in Java? ) but I have a different problem. My problem is, I am not able to decrypt in Java correctly. Despite using the correct key and IV, I still get garbage characters after decryption. I don't have any compile/run-time errors or exceptions in Java so I believe I am using the right parameters for decryption. Python Encryption Code - from Crypto.Cipher import AES import base64 key = '0123456789012345' iv = 'RandomInitVector' raw = 'samplePlainText' cipher = AES.new(key,AES.MODE_CFB,iv) encrypted = base64