SpartanB312 / Grunt

JVM bytecode obfuscator written in Kotlin
GNU General Public License v3.0
117 stars 11 forks source link

CustomDictionary.txt #20

Open erxson opened 3 weeks ago

erxson commented 3 weeks ago

Grunt is awesome!!!

I didn't see anything in NameGenerator.kt that looked like it supported a dictionary in a .txt file. It would be great to see such a feature!

SpartanB312 commented 1 week ago

Grunt already supports CustomDictionary. You can think of it as a number in N-base (N is the size of your element list). All names are generated from the list based on their unique index. For example, I put "c", "a", "f", "e" in the list. At this moment, the name is equivalent to a quaternary number. 0->c, 1->a, 2->f, 3->e. Index 1000 to quaternary is 33220. So the name will be "eeffc".

erxson commented 1 week ago

I mean dictionaries similar to this one image