How to hash username / password?

I’m working on deploying OpenFire via ansible. What mechanism is used to create the hashes of the admin user / pass in openfire.xml?