### Question:
PasswordHashCreatorSHA512 extends AbstractPasswordHashCreator { @Nonnull public String createPasswordHash (@Nullable final IPasswordSalt aSalt, @Nonnull final String sPlainTextPassword) { ValueEnforcer.notNull (sPlainTextPassword, "PlainTextPassword"); return MessageDigestValue.create (sPlainTextPassword.getBytes (StandardCharsets.UTF_8), USER_PASSWORD_ALGO) .getHexEncodedDigestString (); } PasswordHashCreatorSHA512(); boolean requiresSalt(); @Nonnull String createPasswordHash(@Nullable final IPasswordSalt aSalt, @Nonnull final String sPlainTextPassword); static final String ALGORITHM; static final EMessageDigestAlgorithm USER_PASSWORD_ALGO; }### Answer:
@Test public void testBasic () { final String sPlainTextPassword = "123456"; final PasswordHashCreatorSHA512 a = new PasswordHashCreatorSHA512 (); final String sPW1 = a.createPasswordHash (null, sPlainTextPassword); final String sPW2 = a.createPasswordHash (null, sPlainTextPassword); assertEquals (sPW1, sPW2); }