Repository navigation
Add std::crypto to pattern language - #260
Open
a-sakharov wants to merge 1 commit into
Open
a-sakharov wants to merge 1 commit into
a-sakharov wants to merge 1 commit into
Conversation
This branch has not been deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hello.
Sometimes files are completely or partially (usually headers only) encrypted, and patterns couldn't be applied without at least partial decryption. Of course, it could be done with the pattern language, but it's really slow when processing arrays byte by byte.
I've implemented only an XOR function now, which could be used to apply a variable-length XOR key (from a single byte) to a variable-length encoded buffer. In my tests, it's saving about 28 seconds when applied to a 520 KB buffer.
I would like to implement other algorithms if this request will be accepted when I encounter files that require this for applying patterns.
To reinforce my position, some files use XOR to hide their contents:
Arx Fatalis data paks
Plants vs Zombies data paks
MS COFF (only the part with the "Rich header")
Wolf RPG games data