Login system with database

** Hello friends,

walk here to get a little upset with my work.

I’m trying to make a system to connect my clients to the site page with the link server log openfire but without success.

I did everything but do not know how to encode the password with PHP.

I already researched the whole forum and found nothing, anyone could be more clear and tell me where to find selucao use the same encoding that the server uses for the records?

I tried to do with the class-jabber.php but once he does sign, I need only confirm the pass …

Thanks**