private static byte[] hexStringToByteArray(String s) {
    byte[] b = new byte[s.length() / 2];
    for (int i = 0; i < b.length; i++) {
      int index = i * 2;
      int v = Integer.parseInt(s.substring(index, index + 2), 16);
      b[i] = (byte) (v & 0xff);
    }
    return b;
  }
Decrypts an encrypted password string.

@param password String to be decrypted (format: `encrypted(password_to_decrypt)`)
@return String decrypted String
geode-core/src/main/java/org/apache/geode/internal/util/PasswordUtil.java