Hi,
I want to use a Java application to add ser users to the Database. I want to enter the SQL command to the Database straight away (without using serctl), but the problem is that some fields need some calculation (phplib_id, ha1...). Basically calculate the function gen_ha1.
Do you know what does this function calculates?, it is a SHA-1 function?
Have any of you implemented it using Java?
Thanks,
Marcos
uses MD5 headers and libs
Iqbal
Rodríguez García wrote:
Hi,
I want to use a Java application to add ser users to the Database. I want to enter the SQL command to the Database straight away (without using serctl), but the problem is that some fields need some calculation (phplib_id, ha1…). Basically calculate the function gen_ha1.
Do you know what does this function calculates?, it is a SHA-1 function?
Have any of you implemented it using Java?
Thanks,
Marcos
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
On Jul 06, 2005 at 12:55, Rodr?guez Garc?a, Marcos mrogarcia@indra.es wrote:
Hi,
I want to use a Java application to add ser users to the Database. I want to enter the SQL command to the Database straight away (without using serctl), but the problem is that some fields need some calculation (phplib_id, ha1...). Basically calculate the function gen_ha1.
Do you know what does this function calculates?, it is a SHA-1 function?
No, it's and MD5. Look in RFC2617: HTTP Authentication: Basic and Digest Authentication (HA1 = H(A1)).
You can also look at gen_ha1 c code (sip_router/utils/gen_ha1/gen_ha1.c)
Andrei