FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!

ENCRYPTION AND HASHING




Since what is stored in the database is Hashed via PHP, I cannot reverse engineer the process done there. So I think of Executing a php script in Java and java will get the value returned by the php script.



5 blog comments below

public static String getValueFromURL(String host){
try{
URL url = new URL(host);
URLConnection urlCon = url.openConnection();
BufferedReader in = new BufferedReader(
new InputStreamReader(
urlCon.getInputStream()));
String inputLine;

String result="";
while ((inputLine = in.readLine()) != null)
result += inputLine;
in.close();

return result;
}catch(IOException io){

}
return ""; //return nothing on error perhaps
}
delsoft on Tue Feb 09, 2010 2:58 pm
You can use this if you want to fetch data from PHP to java.
delsoft on Tue Feb 09, 2010 2:59 pm
Anyway... you can google it.. ^^
delsoft on Tue Feb 09, 2010 3:00 pm
nice talking to myself.. lol
delsoft on Tue Feb 09, 2010 3:00 pm
Please post a reply here!
tnx!
delsoft on Tue Feb 09, 2010 3:01 pm



FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.