This content has been marked as final. Show 6 replies
One simple way is to call a php's encription. Here is mine.
public function getEncryptionMD5( $MyString )
return md5( $MyString );
No, I cannot use PHP--that's what I'm moving away from.
This will all be done using a .NET web service.
How about an MD5 hash? There is an AS library for it. A hash is not technically an encryption, though, as I have learned since posting this example.
I downloaded your samples and am going through the asp login page. Although I will be using C# and a web service, this is a brilliant example for me to get started with. Yes, MD5 is what I was using with PHP so it will work well for me. I'm assuming that the ActionScript MD5 encrypt function will not return exactly the same result as the PHP MD5 version, so my users may have to update their passwords?
Anyway, of particular interest to me was the aspx page's line:
Since I'm new to .NET, this was a revelation. I'll be looking at this .NET functionality more closely to see how to compare the info sent in from the HTTPService to the stored password.
So, thanks again!
Actually, I would expect any MD5 implementation to behave identically.
Certainly the AS and .net implementations worked together.
all md5 implementations MUST return same hash for same given String, if they dont then there is something wrong,
maybe your php one uses salting or something more than just md5 ing the string?