microsoft / microsoft/winget-cli

[New Feature]: Migrate to SHA3-256

Open
#5,771 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue-Feature
Dominant language
C++
Stars
26.4k
Forks
1.8k
Avg merge
1d 11h
Merged PRs (30d)
15

Description

Description of the new feature/enhancement

Instead of SHA2, it would be forward looking to start using SHA3 for everything from the indexed manifest locations to having it available as an option instead of SHA2 for the installer checksum

Proposed technical implementation details (optional)
  1. Update the index creation to use SHA3 and republish with a new index
  2. Add a new manifest field for installer SHA3-256, and update logic to require either the SHA256 or SHA3-256, and enlighten the client to use whichever algorithm is appropriate
  3. Update Icons to use SHA3-256
  4. Add new manifest field for FileSha3-256
  5. Add new manifest field for SignatureSha3-256
  6. Update Manifest Creation Tools to use SHA3 instead of SHA2

This could probably be separated into several sub-issues for wherever SHA2 hashes are currently used across the product, as I'm sure each portion will require a slightly different approach or implementation

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by mapping the SHA2 uses named in the issue: index creation, installer checksums, icons, manifest fields, signatures, and manifest creation tools. Determine whether these areas should become separate sub-issues; done would require an agreed scope and corresponding client, manifest, index, and tooling changes.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli, security
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.