Rewrite PHP Rijndael algorithm to Java (Android)

前端 未结 2 1887
余生分开走
余生分开走 2020-12-15 02:12

I need to encode a string in Java and php where the result must be the same.

The following conditions are given:

  1. algorithm: RIJNDAEL-128
  2. key:
2条回答
  •  情书的邮戳
    2020-12-15 02:46

    I changed byte[] keyBytes= new byte[16]; to byte[] keyBytes= new byte[32]; in getKeyBytes method then it worked fine.

提交回复
热议问题