Integration into CMS application

I am trying to integrate Openfire into my cms application. I have added an extra piece into my registration script that also creates a record in the openfire db table jiveUser, in essence creating the user for openfire as well as my local site. I do not know what type of encryption openfire is using for the encrypted password field. Can anyone point me in the right direction? or does anyone have a workable solution?

Thanks in advance