feat: SHA-256 self-integrity verification (Python + C++)#11
Open
writsop wants to merge 1 commit intojavelin-anticheat:mainfrom
Open
feat: SHA-256 self-integrity verification (Python + C++)#11writsop wants to merge 1 commit intojavelin-anticheat:mainfrom
writsop wants to merge 1 commit intojavelin-anticheat:mainfrom
Conversation
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.
Summary
Adds SHA-256 self-integrity verification to Javelin Anti-Cheat, complementing the existing CRC32 check. Includes a standalone Python implementation with full test suite.
Closes #4
Changes
AntiCheat.cpp(C++)checkSelfIntegritySHA256()function alongside existing CRC32JAVELIN_EXPECTED_SHA256for baking hash into binary--compute-hashCLI flag to output both CRC32 and SHA-256 of the binaryintegrity_check.py(Python)JAVELIN_EXPECTED_SHA256env var for expected hash--compute-hashutility modeverify_integrity()andcompute_file_sha256()tests/test_integrity.pyREADME.mdTesting
All tests pass on Python 3.10+. C++ compiles with MSVC and MinGW (Windows-only due to WinAPI dependencies).