Java AES 128 encrypting differently to openssl

前端 未结 3 1682
遥遥无期
遥遥无期 2020-11-30 11:51

We\'ve encountered a weird situation where the encryption method we\'re using in Java produces different output to openssl, despite them appearing identical in configuration

3条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-30 12:31

    It is indeed a problem of providing a string or a file. If you put a "\n" at the end of your Java code the result will be the same as in openSSL.

提交回复
热议问题