Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to converse this algorithm!!!please help me!!!

807606Mar 17 2007
protected static final int getHash(byte [] data)
{

int off = 0;
int len = data.lenght;
int k = 147;
try{

for(int l = off + len; l > off;)
k = k * 147 ^ data[--l];

return k;
}
catch(Throwable throwable){
return k;
}

}


If I have the result of thie method like as: 0x69a6d9dd, how I converse this algorithm to get the original data.(the passed paramether)

the data's length is no more than 3!!!!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 14 2007
Added on Mar 17 2007
0 comments
91 views