Skip to content

feat: integrity verification (SHA-256 Python + CRC32 C++) (#4) - #48

Open
cornerblue wants to merge 1 commit into
javelin-anticheat:mainfrom
cornerblue:feat/integrity-verification-4
Open

feat: integrity verification (SHA-256 Python + CRC32 C++) (#4)#48
cornerblue wants to merge 1 commit into
javelin-anticheat:mainfrom
cornerblue:feat/integrity-verification-4

Conversation

@cornerblue

Copy link
Copy Markdown

Summary

Implements #4$100 integrity verification.

Deliverables

  • Python javelin_integrity.py: SHA-256 of script vs JAVELIN_EXPECTED_SHA256; mismatch → exit 0xC1
  • C++ AntiCheat.cpp: existing CRC32 self-check; mismatch → guarded exit 0xC1 (was non-portable 0xCRC)
  • Docs README: how to set expected hashes/CRC
  • Tests tests/test_integrity.py (skip / match / mismatch)

Test plan

  • pytest tests/test_integrity.py — 3 passed

Fixes #4

…icheat#4)

Python: SHA-256 of script vs JAVELIN_EXPECTED_SHA256 with guarded exit.
C++: document CRC32 build-time constant; non-zero mismatch exits 0xC1.
Includes unit tests and README setup instructions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant