Skip to content

Add NFC ID (decimal and hex) to Get-YubiKey output - #202

Merged
virot merged 1 commit into
masterfrom
uid-from-sn
Jul 22, 2026
Merged

Add NFC ID (decimal and hex) to Get-YubiKey output#202
virot merged 1 commit into
masterfrom
uid-from-sn

Conversation

@JMarkstrom

Copy link
Copy Markdown
Collaborator

Add NFC ID (decimal and hex) to Get-YubiKey output

Add support for exposing the YubiKey NFC UID in both decimal and hexadecimal formats via Get-YubiKey in order to support / simplify PACS integration.

Derive the 7-byte NFC UID from the YubiKey serial number and expose it as two new properties on YubikeyInformation:

  • NfcIdDec
  • NfcIdHex

Goal: Improve usability by making the NFC identifier easily accessible for scenarios such as access control, and integration with NFC-based systems.

Details

  • Derive NFC UID from the YubiKey serial number using existing helpers:
    • Converter.SerialToNfcUid
    • NfcUidToDecimal
    • ByteArrayToString
  • Expose computed values via new YubikeyInformation properties:
    • NfcIdDec (decimal representation)
    • NfcIdHex (hexadecimal representation)

@virot
virot merged commit f139a8d into master Jul 22, 2026
4 checks passed
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.

2 participants