开发者

Algorithm to Encrypt in Objective-C and Decrypt in Java

Want to know algorithm (if exists) that will match the results in both Objective-C and Java.

开发者_如何学JAVA

Objective: Ojective-C will send the encrypted data and need to validate with the details that are encrypted in Java.

So need the common algorithm where encryption output value is same.

i.e. EncryptionInObjectiveC(NSString *) = EncryptionInJava(String);

Please help me out.

Thanks in advance.


Data is data, regardless of what language you're coding in. Any encryption algorithm that does the same thing in both languages would work.


Typically you convert data to Base64 and then apply an encryption algorithm. Have a look at Apple's sample code

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜