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.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement