public static String encryptPassword(String password) {
        if (password == null) {
            return null;
        }
        Blowfish cipher = getCipher();
        if (cipher == null) {
            throw new UnsupportedOperationException();
        }
        return cipher.encryptString(password);
    }
Returns an encrypted version of the plain-text password. Encryption is performed
using the Blowfish algorithm. The encryption key is stored as the Jive property
"passwordKey". If the key is not present, it will be automatically generated.

@param password the plain-text password.
@return the encrypted password.
@throws UnsupportedOperationException if encryption/decryption is not possible;
     for example, during setup mode.
xmppserver/src/main/java/org/jivesoftware/openfire/auth/AuthFactory.java