public static boolean checkPassword(String checkHash, long checkSalt, char[] pword) {
		MessageDigest msgDig = null;
		
		try {
			msgDig = MessageDigest.getInstance("SHA-512");
		} catch (NoSuchAlgorithmException e) {
			// 
			e.printStackTrace();
		}
		
		String computedHash = new HexBinaryAdapter().marshal(msgDig.digest((checkSalt + String.valueOf(pword)).getBytes()));
		
		return computedHash.equals(checkHash);
	}