Skip to content

feat: add SHA-256 integrity verification for C++ and Python (fixes #4)#37

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

feat: add SHA-256 integrity verification for C++ and Python (fixes #4)#37
misakaAron wants to merge 1 commit into
javelin-anticheat:mainfrom
misakaAron:feat/integrity-verification

Conversation

@misakaAron

Copy link
Copy Markdown

Implements integrity verification as described in #4.

Changes

C++ (AntiCheat.cpp)

  • Added SHA-256 hash computation using Windows CNG (BCrypt API)
  • Added checkSelfIntegritySha256() function that compares SHA-256 of the running executable against a build-time constant JAVELIN_EXPECTED_SHA256
  • Retained existing CRC32 check; SHA-256 runs as a stronger additional layer when configured
  • Added oHex() utility for hash comparison output
  • Exit code

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.

1 participant