Fix #9: Show Package Family Name and Package Full Name - #12
Merged
Conversation
Adds PackageIdentityCalculator (Core) that computes the MSIX publisher hash (SHA-256 of UTF-16LE publisher string, first 8 bytes encoded as 13 chars of Crockford base32), the Package Family Name (Name_PublisherHash) and the Package Full Name (Name_Version_Architecture_ResourceId_PublisherHash). Verified against two known ground-truth values: Microsoft Corporation -> 8wekyb3d8bbwe, and MSIXplainer's own publisher -> nxa64pw99ve20. Surfaces both values: * WinUI Identity property group (with explanations for IT pros about AppLocker, Intune, WDAC, Get-AppxPackage) * CLI summary table (Family Name + Full Name rows) 11 new tests, 129 total Core tests pass. Closes #9 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #9.
Adds a
PackageIdentityCalculatorservice (Core) that hand-implements the MSIX publisher-hash algorithm:0123456789abcdefghjkmnpqrstvwxyz— omits i/l/o/u)Uses that to compute:
Name_PublisherHash(stable across versions/archs — what IT pros need for AppLocker, Intune detection scripts, WDAC,Get-AppxPackage)Name_Version_Architecture_ResourceId_PublisherHash(this exact build —Add-AppxPackage/Remove-AppxPackage)Verified ground truth
8wekyb3d8bbwe✅CN=46604BD4-AFD9-4B23-8EB3-10EAF66872A5) →nxa64pw99ve20✅Surfaces in both UIs
Tests
PackageIdentityCalculatorTests: known hashes, 13-char length invariant, vowel-free alphabet, PFN format, Full Name format, architecture lowercasing, empty input handling