yeah this is kind of based on C++ but i thought maybe the people ive helped before could help me with this plz? thx.
I am reversing an encryption from a site that uses java.
this is the code:
H!8(#i9\;S@HC-
!668);$j&On,5[
2$k]ZK^4 t*D<>z6I!BL9>M,U@3<A1"-S&1>Q,m")9"L)<&-UG0X,h$i+a
5S:S;Rr%
5_k#-\:Y.Q{/4[DKAJ-f=BCK?J7L.W
UGH:7(/S"_,Ws(!ct%-b,f#+BFBR*c*b
------------------------------------------------------------------------------------
and this is the (java) encryption :
------------------------------------------------------------------------------------
String DeCrypto(String eText)
{
char ff = ' ';
String dText = new String();
char hold[] = new char[eText.length() / 2];
for(int i = 0; i < eText.length() / 2; i++)
{
char c1 = eText.charAt(2 * i);
char c2 = eText.charAt(2 * i + 1);
char k;
if(c1 > c2)
k = (char)((c1 - c2) + ff);
else
k = (char)((c2 + c1) - ff);
hold[i] = k;
}
dText = new String(hold);
return dText;
}
------------------------------------------------------------------------------------
i know you can reverse this with C/C++/etc.... but im just plain stuck. coulkd someone please reverse this? thank you in advance![]()



LinkBack URL
About LinkBacks




