Skip to content

Add optional integrity verification guards#34

Open
darkredace-codex-0521 wants to merge 1 commit into
javelin-anticheat:mainfrom
darkredace-codex-0521:codex-integrity-verification
Open

Add optional integrity verification guards#34
darkredace-codex-0521 wants to merge 1 commit into
javelin-anticheat:mainfrom
darkredace-codex-0521:codex-integrity-verification

Conversation

@darkredace-codex-0521
Copy link
Copy Markdown

@darkredace-codex-0521 darkredace-codex-0521 commented May 21, 2026

Fixes #4.

Adds optional integrity verification for both implementations:

  • C++ executable CRC32 guard with a normalized embedded expected-value marker.
  • --print-integrity-crc32 helper for producing the build-time CRC value.
  • Python SHA-256 script guard using JAVELIN_EXPECTED_SHA256.
  • --print-integrity-sha256 helper for producing the Python expected hash.
  • README instructions for generating and setting expected values.
  • Replaces the invalid 0xCRC return literal with a valid guarded integrity exit code.

Validation performed:

  • python AntiCheat.py --print-integrity-sha256
  • python AntiCheat.py
  • matching JAVELIN_EXPECTED_SHA256 run passes
  • mismatched JAVELIN_EXPECTED_SHA256 run exits with an integrity failure
  • git diff --check

I could not compile the Windows C++ file in this environment because no C++ compiler is installed here.

/claim #4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Add Integrity Verification (Hash of Executable/Script)

1 participant