Tools

    DGI / CPS perso decoder

    Decode CPS / STORE DATA DGI streams or a CPS perso file, with a DGI presence checklist.

    • Runs in your browser
    • No sign-up

    Input

    CPS / STORE DATA DGI blocks.
    Key handling

    5 DGIs decoded.

    Result

    Decoded DGIs (5)
    0101: Record data: SFI 1, record 1 (template 70) [16]
    CPS record DGI
    70:READ RECORD Response Message Template
    9102: SELECT response data (FCI Proprietary Template A5) [12]
    CPS Annex A Table 14 / Table 19
    A5:File Control Information (FCI) Proprietary Template
    9104: GET PROCESSING OPTIONS response data (AIP, AFL) [10]
    CPS Annex A Table 15
    82:Application Interchange Profile (AIP) · 94:Application File Locator (AFL)
    8000: DES keys: UDK, MAC key, ENC key [16]
    CPS Annex A Table 2
    Encrypted data hidden (16 bytes)
    9000: Key check values for the DES keys in DGI 8000 [3]
    CPS Annex A Table 3 (not encrypted)
    Key check values (3 bytes each, in key order): 08D7B4
    Presence check: CPS common DGIs, payment application

    5/5 listed DGIs found with data

    ✓ Every DGI on this list is in the stream and carries data

    This only checks which common CPS DGI identifiers are present. It does not check their contents and is not a scheme requirement list; use the personalization specification of the applicable scheme and profile.

    Personalization data rejected by the bureau or a scheme test? IDNTEQ can find the cause. CPV / PVT preparation and remediation

    About this tool

    Runs in your browser. This page loads no analytics or third-party scripts and does not send what you type.

    Decode a perso data stream into its DGIs, or open a CPS perso file and get each application with its DGIs. Record, SELECT-response and GPO-response DGIs are TLV-parsed, and a checklist shows which common CPS DGIs are present. Encrypted DGIs (80xx–8Fxx) are hidden by default.

    Presence checklist

    The checklist reports which of the common DGIs defined in EMV CPS v1.0 Annex A are in the stream and carry data, so a missing key or record DGI is visible before the file goes to a bureau or scheme.

    It checks identifiers only; it does not check contents or provide a scheme requirement list. Visa VSDC, M/Chip and other scheme-specific DGIs are not named by the tool. Check the personalization specification of the applicable scheme and profile.

    CPS perso files

    Open a CPS output file and the tool finds the binary data between the start and end delimiters (by default #SMC#1[ and #END#, followed by a 6-digit decimal length), then splits it into applications: a 10-byte header, an 8-byte key ID, the application data length, the AID (tag 84), the DGIs, each preceded by an 8802 marker, and a 12-byte trailer. Each application’s DGIs are decoded with the same dictionary and checklist. The tool lists all bytes outside that structure. The extracted binary can be saved as cps_data.bin.

    A pasted stream in which every DGI follows an 8802 marker is recognised as such, so 8802 is not read as a DGI identifier. The framing can also be set by hand.

    Encrypted DGIs are hidden

    CPS states that the data in a DGI whose first identifier byte is 80–8F is always encrypted: the DES keys (8000), the reference PIN block (8010) and the ICC private-key data (81xx–83xx). These are hidden by default; show them explicitly if you are working with test data. No check value is computed from them, because the bytes are ciphertext. The key check values the issuer supplied are in DGI 9000, which the tool lists.

    Spec references

    • EMV Card Personalization Specification v1.0 §2.2 and Annex A
    • GlobalPlatform STORE DATA

    Verified against

    Specifications
    • EMV CPS v1.0 §2.2 and Annex A (DGI framing, common DGIs, encrypted DGIs 80xx–8Fxx)
    Published examples in the tests
    None: no published example with these inputs was found. The checks below are the ones the tests run.
    Other checks in the tests
    • DGI framing with 1-byte and FF + 2-byte lengths; FFFF refused; trailing and truncated data reported
    • Encrypted DGIs hidden and no check value computed over them
    • CPS file extraction: delimiters, 6-digit length, application header, key ID, 8802 markers and trailer (made-up test files)
    • The default stream parses with consistent lengths (made-up test data)
    Inputs
    A DGI stream in hex (plain or 8802-marked), or a CPS output file read in the browser.
    Not covered
    Scheme-specific DGIs (Visa VSDC, M/Chip) are not named; the checklist checks identifiers only, not contents.
    Last reviewed