[Serusers] implementing ge_ha1 with JAVA

Andrei Pelinescu-Onciul andrei at iptel.org
Wed Jul 6 13:31:11 CEST 2005


On Jul 06, 2005 at 12:55, Rodr?guez Garc?a, Marcos <mrogarcia at 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




More information about the sr-users mailing list