Background
I am using the
Microsoft.AspNet.Identity;
framework in an MVC website. I implement all the standard features like password retrieval, email confirmations etc. in the site.
My Problem
I want to create a very basic App in Xamarin c#, but I want it to use the database that I have set up with my website, and that - of course - includes verifying passwords.
By my thoughts it should go something like this:
- User enters login details on phone.
- Phone hashes password and consumes WCF service which takes hash string as input
- Returns bool. Depending on hash verification.
I can not use
Microsoft.AspNet.Identity;
on my Xamarin App.
Question
How do I recreate the hash that Asp.Identity uses so I can verify the passwords?
If the case is that I have to consume the WCF with the raw password (Is this safe?) and do the hashing on the service itself - will I be able to use Identity framework? If not then I still have the problem of creating / verifying the hash.
Also if I am way off base with my understanding of these hash functions please feel free to educate me :)
Extra Info
The hash functions I have tried give completely different hashes to that of the Identity framework - and in my testing I have found that creating users with exactly the same passwords gives different hashes. (Due to the salt used?)