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.
开发者_如何学JAVAObjective: 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
精彩评论