Skip to content

Add Python SHA-256 integrity guard#29

Open
sureshchouksey8 wants to merge 3 commits into
javelin-anticheat:mainfrom
sureshchouksey8:python-sha256-integrity-guard
Open

Add Python SHA-256 integrity guard#29
sureshchouksey8 wants to merge 3 commits into
javelin-anticheat:mainfrom
sureshchouksey8:python-sha256-integrity-guard

Conversation

@sureshchouksey8

Copy link
Copy Markdown

Summary

  • Add javelin_integrity.py with optional SHA-256 verification controlled by JAVELIN_EXPECTED_SHA256.
  • Fail closed with a guarded exit when the expected digest does not match the target script.
  • Document how to generate and set expected hashes, plus the existing C++ CRC32 build-time constant flow.
  • Add stdlib unittest coverage for matching hashes, mismatches, and guarded exit behavior.

Verification

  • python3 -m unittest -q test_javelin_integrity.py
  • python3 -m py_compile javelin_integrity.py test_javelin_integrity.py
  • git diff --check

/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.

1 participant