From 1208957cf4db0b9d618ee31e19b9546f6de5aa1a Mon Sep 17 00:00:00 2001 From: Shanyu Thibaut Juneja Date: Fri, 6 Dec 2024 20:36:50 -0500 Subject: [PATCH] fix: merge pure hash to independent transformer --- .../skidfuscator/obfuscator/Skidfuscator.java | 2 ++ .../IntegerBlockPredicateRenderer.java | 10 ++-------- .../impl/pure/PureHashTransformer.java | 19 +++++++++++++++++++ 3 files changed, 23 insertions(+), 8 deletions(-) create mode 100644 dev.skidfuscator.obfuscator/src/main/java/dev/skidfuscator/obfuscator/transform/impl/pure/PureHashTransformer.java diff --git a/dev.skidfuscator.obfuscator/src/main/java/dev/skidfuscator/obfuscator/Skidfuscator.java b/dev.skidfuscator.obfuscator/src/main/java/dev/skidfuscator/obfuscator/Skidfuscator.java index 6e35732..e7ef33c 100644 --- a/dev.skidfuscator.obfuscator/src/main/java/dev/skidfuscator/obfuscator/Skidfuscator.java +++ b/dev.skidfuscator.obfuscator/src/main/java/dev/skidfuscator/obfuscator/Skidfuscator.java @@ -52,6 +52,7 @@ import dev.skidfuscator.obfuscator.transform.impl.flow.interprocedural.RandomInitTransformer; import dev.skidfuscator.obfuscator.transform.impl.misc.AhegaoTransformer; import dev.skidfuscator.obfuscator.transform.impl.number.NumberTransformer; +import dev.skidfuscator.obfuscator.transform.impl.pure.PureHashTransformer; import dev.skidfuscator.obfuscator.transform.impl.string.StringEncryptionType; import dev.skidfuscator.obfuscator.transform.impl.string.StringTransformerV2; import dev.skidfuscator.obfuscator.util.ConsoleColors; @@ -684,6 +685,7 @@ public List getTransformers() { new BasicConditionTransformer(this), new BasicExceptionTransformer(this), new BasicRangeTransformer(this), + new PureHashTransformer(this), /* new FlatteningFlowTransformer(this),*/ new AhegaoTransformer(this) diff --git a/dev.skidfuscator.obfuscator/src/main/java/dev/skidfuscator/obfuscator/predicate/renderer/IntegerBlockPredicateRenderer.java b/dev.skidfuscator.obfuscator/src/main/java/dev/skidfuscator/obfuscator/predicate/renderer/IntegerBlockPredicateRenderer.java index c6d4047..1bb07e8 100644 --- a/dev.skidfuscator.obfuscator/src/main/java/dev/skidfuscator/obfuscator/predicate/renderer/IntegerBlockPredicateRenderer.java +++ b/dev.skidfuscator.obfuscator/src/main/java/dev/skidfuscator/obfuscator/predicate/renderer/IntegerBlockPredicateRenderer.java @@ -69,7 +69,7 @@ public IntegerBlockPredicateRenderer(Skidfuscator skidfuscator, List