Revision 62504bcf
Added by Leszek Koltunski over 3 years ago
| src/main/java/org/distorted/external/RubikNetwork.java | ||
|---|---|---|
| 502 | 502 |
String reclist = scores.getRecordList("&o=","&l=","&t=");
|
| 503 | 503 |
String country = scores.getCountry(); |
| 504 | 504 |
long epoch = System.currentTimeMillis(); |
| 505 |
String salt = "cubold";
|
|
| 505 |
String salt = "cuboid";
|
|
| 506 | 506 |
|
| 507 | 507 |
String renderer = DistortedLibrary.getDriverRenderer(); |
| 508 | 508 |
String version = DistortedLibrary.getDriverVersion(); |
| ... | ... | |
| 514 | 514 |
String url1="https://distorted.org/magic/cgi-bin/submit.cgi"; |
| 515 | 515 |
String url2 = "n="+name+"&v="+veri+"&r="+numRuns+"&p="+numPlay+"&i="+deviceID+"&e="+mVersion; |
| 516 | 516 |
url2 += "&d="+renderer+"&s="+version+reclist+"&c="+country+"&f="+epoch; |
| 517 |
String hash = computeHash( url2+"d", salt.getBytes() );
|
|
| 517 |
String hash = computeHash( url2, salt.getBytes() ); |
|
| 518 | 518 |
|
| 519 | 519 |
return url1 + "?" + url2 + "&h=" + hash; |
| 520 | 520 |
} |
Also available in: Unified diff
Minor