Skip to content

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

Open
JMarkstrom wants to merge 1 commit intomasterfrom
uid-from-sn
Open

Add NFC ID (decimal and hex) to Get-YubiKey output#202
JMarkstrom wants to merge 1 commit intomasterfrom
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)

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