Skip to content
Advertisement

Tag: tlv

How to Decode Base64 to TLV in PHP

I am building an inhouse Invoicing solution for my company. The government requires us to create QR Code fields encoded in Tag-Length-Value (TLV) format. The TLV encoding shall be as follows: Tag: the tag value as mentioned above stored in one byte Length: the length of the byte array resulted from the UTF8 encoding of the field value. The length

Advertisement