[JDEV] digest authentication
Dustin Puryear
dpuryear at usa.net
Fri May 18 15:10:44 CDT 2001
Ok, so you produce the input for SHA1 by concatenating the session id
and password, correct? ("id" and "password" become "idpassword"). I
pulled the code from jabberd/lib/sha.c and I am not getting the right
value returned from a test driver:
#include <string.h>
int main(int argc, char *argv[])
{
if (argc < 1)
return 1;
printf("buf = %s\n", argv[1]);
printf("shahash(%s) = %s\n", argv[1], shahash(argv[1]));
return 0;
}
The value returned is not the same as that produced when gabber, my
Jabber client, is authenticated by the server. I am correct that I
should pass the concatendated values to shahash(), correct?
Regards, Dustin
---
Dustin Puryear <dpuryear at usa.net>
http://members.telocity.com/~dpuryear
In the beginning the Universe was created.
This has been widely regarded as a bad move. - Douglas Adams
More information about the JDev
mailing list