Phien
Phien

Reputation: 148

Java, Trouble with decompiler

I have used JD decompiler for decompiling a jar file. Affter do that I have source code. However, I think that it is be encrypted! I get some class with the name like "Cny3", "JmcU","Ow0w","YrRb","Jhaa","gzL9", .... Can I decrypt or get the name of class with any software or tech. Thanks for your help.

Upvotes: 0

Views: 132

Answers (3)

A.H.
A.H.

Reputation: 66243

(Emphasis mine):

I get some class with the name like "Cny3",

If most class have good names and there are just a few ugly names, then I wouldn't think of code obfuscation. I would think that some byte-code enhancing tool has generated some internal classes. Or perhaps some other tool which generates classes.

Tools which may be involved:

  • AOP tools usually can weave during compile-time.
  • Everything wit an APT compiler plugin (Annotation Processing Tool)

Edit Obfuscation tools usually also encrypt instance fields and method names as far as possible. How do they look like?

Upvotes: 0

Matteo
Matteo

Reputation: 14930

The code was not encrypted but obfuscated (see obfuscated code on Wikipedia). Class and method names where transformed to unique random strings to make the understanding of decompiled code difficult. Reversing this transformation is not possible.

Upvotes: 4

stryba
stryba

Reputation: 2027

No. The source was probably obfuscated.

Upvotes: 0

Related Questions