Java string encrypt

前端 未结 3 1624
感动是毒
感动是毒 2020-12-14 13:22

I am using the encryption class in Objective C for my iPhone app but I am struggling to get the same functionality working in JAVA from my android app. My encryption code i

3条回答
  •  生来不讨喜
    2020-12-14 14:06

    Instead of using ECB, you ought to use CBC or CTR if possible. ECB is insecure.

    It looks like your Objective-C code is using UTF-8 encoding, but you're not specifying this in your Java code. Use getBytes("UTF-8").

提交回复
热议问题