python AES encryption java decryption

后端 未结 1 1969
滥情空心
滥情空心 2021-01-03 13:41

I have over 1000 images and videos that need to be encrypted. Nothing over the top just something simple, I was thinking of using AES but what I cannot figure out is how to

相关标签:
1条回答
  • 2021-01-03 14:06

    In the Java version, you don't seem to be reading in the filesize before reading in the IV, unlike the Python version.

    You also open a second FileInputStream and then don't skip the filesize and IV before reading in chunks for the Cipher.

    Another thing to check is that the keys are being interpreted the same in Java and Python, i.e. the string in Python results in the same sequence of bytes as the byte array in Java.

    0 讨论(0)
提交回复
热议问题