Skip to content

Enhance SHA256GEN.ps1 to include manifest generation - #1

Open
zaxlofful wants to merge 7 commits into
FalsePhilosopher:mainfrom
zaxlofful:patch-1
Open

Enhance SHA256GEN.ps1 to include manifest generation#1
zaxlofful wants to merge 7 commits into
FalsePhilosopher:mainfrom
zaxlofful:patch-1

Conversation

@zaxlofful

Copy link
Copy Markdown

I really liked your script and it was exactly what I needed, but I realized that there was one issue. The SHA256 file was getting hashed as it was created. Which is not workable.

With this change, it will get a hash that can survive folder movement.

Updated the script to generate a SHA-256 manifest and compute a master hash from the file hashes.

Got the idea from: https://stackoverflow.com/questions/64467425/md5-checksum-hashing-with-powershell-for-a-whole-directory

I really liked your script and it was exactly what I needed, but I realized that there was one issue. The SHA256 file was getting hashed as it was created. Which is not workable.

With this change, it will get a hash that can survive folder movement.

Updated the script to generate a SHA-256 manifest and compute a master hash from the file hashes.

Got the idea from: https://stackoverflow.com/questions/64467425/md5-checksum-hashing-with-powershell-for-a-whole-directory
Refactor SHA256 verification script to improve error handling and manifest validation.
@zaxlofful

Copy link
Copy Markdown
Author

I made it so the check file would account for the master hash

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