private String getSalt(){

		String salt = "";

		String s = null;

		InputStream stream = null;

		try {
			stream = connectGet("http://"+routerIP);

			//Read Stream
			BufferedReader stdInput = new BufferedReader(new InputStreamReader(stream));

			boolean found = false;
			while ((s = stdInput.readLine()) != null) {

				String str = s.trim(); 

				if(str.startsWith("function send_login()")){
					found = true;
				}
				if(found){
					
					final String START_SALT_LINE = "var salt = ";
					
					if(str.startsWith(START_SALT_LINE)){
						salt = str.substring(START_SALT_LINE.length()+1, 20);
						break;
					}				
				}
			}
			
			stdInput.close();
			stream.close();
			
		} catch (MalformedURLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

		return salt;
	}