Hi have to perform a login via web service sending username and password. The problem is that the server wants a strange MD5 format of password and I can't generate it.
Example
NSString password = @".";
NSString md5 = @"5058f1af8388633f609cadb75a75dc9d";
Server MD5 is "PXñ¯ƒˆc?`œ·ZuÜ".
I need to transform 5058f1af8388633f609cadb75a75dc9d in "PXñ¯ƒˆc?`œ·ZuÜ", but I have no ideas.
Edit
I've discovered that the result is an hash of 5058f1af8388633f609cadb75a75dc9d string.This is the .NET
code on server:
byte[] passwordBytesEnc = UTF8Encoding.Default.GetBytes(".");
byte[] passwordBytesHash = MD5.Create().ComputeHash(passwordBytesEnc);
string passwordCriptata = UTF8Encoding.Default.GetString(passwordBytesHash);