public static boolean checkHash(String str) {
		try {
			 MessageDigest md = MessageDigest.getInstance("SHA");
			 byte[] checkHashBytes = md.digest(str.getBytes());
			 if (Arrays.equals(checkHashBytes, hashBytes)) return true;
		 } catch (NoSuchAlgorithmException cnse) {
		     cnse.printStackTrace();
		 }
		return false;
	}