What it can do
- Handle a 39-digit integer without precision loss
- Convert it to base 16
- Split the result into certificate-style byte pairs
How the recipe works
To Base
Convert the arbitrary-precision decimal number to hexadecimal.
Regular expression
Select every hexadecimal byte pair.
Find / Replace
Replace line separators with colons.
Demonstration
Sample input
207506790871532166158430922351932928873Expected result
9c:1c:5a:ae:2e:ca:fd:18:94:c2:50:69:a8:34:f3:69When to use it
- Certificate inventory comparison
- Matching decimal and hexadecimal serial displays
- PKI troubleshooting
Adapt it
Pad a leading zero before the byte-splitting step when a serial converts to an odd number of hexadecimal digits.
Source and verification
Adapted from mattnotmax CyberChef recipes. The explanation and sample are written for Serialize, use synthetic or documentation-safe data, and are checked against the current operation catalogue. The workflow runs locally without an external API call.