I'm pretty rusty on my C++, but it looks as though we're doing the same thing. I'm taking each byte of my digest and converting it to it's 2 character hex value.
Are there different MD5 standards so that we're both coming up with different digest values?
>I don't know much about FoxPro syntax since my background is C++, Visual Basic and ASP. Within Encoder Wizard, this is the part that converts the digest to the standard format.
>
> unsigned char digest[16];
> GetDigest(sSecret,digest);
> CString adder;
> CString sDigest;
> for (int i = 0;i<16;i++)
> {
> adder.Format("%02x",digest[i]);
> sDigest += adder;
> }
> return sDigest;
>
>Basically take each byte and convert it two its 2 character hex value.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only