You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
placement of sha256 checksums on releases page #10209
The same can be done for any hashing format that Get-FileHash supports. According to the wiki pages for file verification, hash files typically just list each file on a line where each line contains a hash and a filename, separated by a single space.
I think having one hash file per file would be confusing. I don't think that is a viable option. The format clearly supports multiple files in the hash file, so we can have one file with all the hashes.
Any update on this? I am having to download arm64 for Debian because there's no apt package in the Microsoft pool. There's no great way to verify automatically unless we parse html.
Please provide feedback before the release of 7.2. After the release of 7.2, we will only backport changes which are not breaking.
I only implemented sha256. If you want to implement another hash format, you have the file location and can look at the final code (a bug was found during the release so look at the file in master not the PR), and implement another hash.
We are going to be required to provide this format for the contents of our packages.
Generating this should be simple as we will have a task to just generate this.
Imagine this for packages, how much more difficult would this be to use?
Activity
iSazonov commentedon Jul 23, 2019
Travis Plunk (@TravisEz13) Is it possible to put all checksums in a file?
TravisEz13 commentedon Jul 24, 2019
@snow8gaia Can you contribute a PowerShell script which takes a directory and uses Get-FileHash to generate the format you want?
vexx32 commentedon Jul 26, 2019
Would we need a single file or multiple checksum files, one for each zipfile? 🤔
TravisEz13 commentedon Jul 26, 2019
I think a single file is adequate as the file has the filenames in it.
vexx32 commentedon Jul 26, 2019
If we assume we're doing something like the md5sum format we can fairly easily do this:
The same can be done for any hashing format that Get-FileHash supports. According to the wiki pages for file verification, hash files typically just list each file on a line where each line contains a hash and a filename, separated by a single space.
Pretty straightforward format to follow. :)
TravisEz13 commentedon Jul 27, 2019
This is what @snow8gaia provided. The syntax needs to be fixed, but we should use SHA256
TravisEz13 commentedon Jul 27, 2019
TravisEz13 commentedon Aug 15, 2019
I think having one hash file per file would be confusing. I don't think that is a viable option. The format clearly supports multiple files in the hash file, so we can have one file with all the hashes.
Chuxel commentedon Sep 18, 2021
Any update on this? I am having to download arm64 for Debian because there's no apt package in the Microsoft pool. There's no great way to verify automatically unless we parse html.
TravisEz13 commentedon Sep 23, 2021
I created #16147 to add the sha256 hashes.
TravisEz13 commentedon Sep 29, 2021
One difference, according to the file spec, we are supposed to add an
*before the file name for binary files.TravisEz13 commentedon Sep 29, 2021
Please provide feedback before the release of 7.2. After the release of 7.2, we will only backport changes which are not breaking.
I only implemented sha256. If you want to implement another hash format, you have the file location and can look at the final code (a bug was found during the release so look at the file in master not the PR), and implement another hash.
Chuxel commentedon Sep 29, 2021
SHA256 is fine from my perspective!
TravisEz13 commentedon Oct 2, 2021
We are going to be required to provide this format for the contents of our packages.
Generating this should be simple as we will have a task to just generate this.
Imagine this for packages, how much more difficult would this be to use?
{ "Outputs": [ { "Source": "/Accessibility.dll", "AzureArtifactsHash": "044D5A90000300000004000000FFFF0000B800000000000000400000000000000000", "Sha256Hash": "CF21AA06D52BE85EE2C995BC475E0A90E773AC59B9621D95A53C172FD98DB87F" }, { "Source": "/api-ms-win-core-datetime-l1-1-0.dll", "AzureArtifactsHash": "044D5A90000300000004000000FFFF0000B800000000000000400000000000000000", "Sha256Hash": "913EAAA7997A6AEE53574CFFB83F9C9C1700B1D8B46744A5E12D76A1E53376FD" }, { "Source": "/zh-Hant/WindowsFormsIntegration.resources.dll", "AzureArtifactsHash": "044D5A90000300000004000000FFFF0000B800000000000000400000000000000000", "Sha256Hash": "143F539D34A0653DF145CF3592AA64D60A05147F00ABAC14A6F43E2B59708EC1" } ], "CloudBuildId": "101010", "Repo": "https://github.com/powershell/powershell", "Branch": "doentexist", "CommitId": "6ee476e9c6d25f12257f5f97635c77b586bff314", "Version": "7.2.10", "Timestamp": 1633150231 }