Skip to content

verify sha256 checksums for windows users. #1151

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
wants to merge 5 commits into from
Closed

Conversation

KASR
Copy link
Contributor

@KASR KASR commented Apr 24, 2023

feat: Add PowerShell script to verify file hashes for Windows users

This commit adds a PowerShell script that can be used to verify the hash sums of model files on Windows. The script reads the SHA256SUMS file with the expected hash sums and filenames, calculates the SHA256 hash of each file using certUtil, and compares it with the expected hash.

The output is a table with the filename, valid checksum (if the hash matches), and file missing (if the file is not found).

edit: I've provided a small how-to in the readme file.

KASR added 2 commits April 24, 2023 10:43
feat: Add PowerShell script to verify file hashes

This commit adds a PowerShell script that can be used to verify the hash sums of model files on Windows. The script reads the 'SHA256SUMS' file with the expected hash sums and filenames, calculates the SHA256 hash of each file using `certUtil`, and compares it with the expected hash. 

The output is a table with the filename, valid checksum (if the hash matches), and file missing (if the file is not found).
@sw
Copy link
Contributor

sw commented Apr 24, 2023

Good idea. I can't test this as I'm not using Windows. Please consider moving this to scripts/ and updating the readme, so Windows users will know what to do.

@KASR
Copy link
Contributor Author

KASR commented Apr 24, 2023

@sw I've made the suggested changes.

It would be great if some other windows user could test the script on his machine.

@KASR
Copy link
Contributor Author

KASR commented Apr 27, 2023

I will close this PR and open a new one where the verification script uses python, so that we the proposed solution is independent of the operating system.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants