How to hash a password with SHA-512 in Java? The Java class generates a password hash, which can be stored as an SSHA512 password in an LDAP server or in a password database.