1

Want to know algorithm (if exists) that will match the results in both Objective-C and 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.

2 Answers 2

3

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

Sign up to request clarification or add additional context in comments.

Comments

1

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

1 Comment

Why would you convert the data to Base64 before encrypting?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.