-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: merge pure hash to independent transformer
- Loading branch information
1 parent
bf6ce5a
commit 1208957
Showing
3 changed files
with
23 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
...or/src/main/java/dev/skidfuscator/obfuscator/transform/impl/pure/PureHashTransformer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package dev.skidfuscator.obfuscator.transform.impl.pure; | ||
|
||
import dev.skidfuscator.obfuscator.Skidfuscator; | ||
import dev.skidfuscator.obfuscator.event.EventPriority; | ||
import dev.skidfuscator.obfuscator.event.annotation.Listen; | ||
import dev.skidfuscator.obfuscator.event.impl.transform.skid.InitSkidTransformEvent; | ||
import dev.skidfuscator.obfuscator.number.pure.VmHashTransformer; | ||
import dev.skidfuscator.obfuscator.transform.AbstractTransformer; | ||
|
||
public class PureHashTransformer extends AbstractTransformer { | ||
public PureHashTransformer(Skidfuscator skidfuscator) { | ||
super(skidfuscator, "Pure Encryption"); | ||
} | ||
|
||
@Listen | ||
void handle(final InitSkidTransformEvent event) { | ||
skidfuscator.setVmHasher(new VmHashTransformer(skidfuscator)); | ||
} | ||
} |