public boolean checkLogin(String mcuser, String pass) {
		SecretPlayer player = secplayers.get(mcuser);
		
		if (player == null) return false;
		try {
			byte[] hashtocompare = DatabaseUtils.base64ToByte(player.getData().getString("Word"));
			byte[] salt = DatabaseUtils.base64ToByte(player.getData().getString("Salt"));
			byte[] proposedHash = DatabaseUtils.getHash(1000, pass, salt);
			
			if (Arrays.equals(hashtocompare, proposedHash)) {
				player.getData().set("IP", player.getIP());
				player.getData().set("Lastlogin", System.currentTimeMillis());
				player.saveData();
				return true;
			}
		} catch (NoSuchAlgorithmException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (UnsupportedEncodingException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		return false;
	}