protected String encodePassword(final String password) {
        return DigestUtils.sha512(password);
    }
Encode password string.

@param password the password
@return the string
support/cas-server-support-pm-core/src/main/java/org/apereo/cas/pm/impl/history/BasePasswordHistoryService.java