Skip to content

feat: add Python integrity verification (SHA-256) - #25

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

feat: add Python integrity verification (SHA-256)#25
nguyenquockhang1610 wants to merge 1 commit into
javelin-anticheat:mainfrom
nguyenquockhang1610:feat/integrity-verification

Conversation

@nguyenquockhang1610

Copy link
Copy Markdown

Summary

Implements integrity verification for Python scripts (#4).

Changes

  • integrity.py — SHA-256 hash verification module
  • test_integrity.py — 4 tests, all passing
  • README.md — setup and usage documentation

Acceptance Criteria

  • Non-matching hash results in guarded exit (code 1)
  • Document how to set expected values (JAVELIN_EXPECTED_SHA256 env var)

Fixes #4

- integrity.py: computes SHA-256 of running script, compares to
  JAVELIN_EXPECTED_SHA256 env var, exits on mismatch
- test_integrity.py: 4 tests (hash computation, no env, match, mismatch)
- Updated README with setup and usage docs

Acceptance criteria met:
- [x] Non-matching hash results in guarded exit
- [x] Document how to set expected values

Fixes javelin-anticheat#4
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