title: How long to brute force a salted SHA-512 hash? (salt provided)
body: <p>Here is an algorithm in Java:</p>
  
  <pre><code>public String getHash(String password, String salt) throws Exception {
      String input = password + salt;
      MessageDigest md = MessageDigest.getInstance(SHA-512);
      byte[] out = md.digest(input.getBytes());
      return HexEncoder.toHex(out);
  }
  </code></pre>
  
  <p>Assume the salt is known. I want to know the time to brute force for when the password is a dictionary word and also when it is not a dictionary word.</p>