I have application where I am using printed qr codes to identify real life objects with their database records.
The database uses GUID's as primary keys (this is non-negotiable as it is an occasionally connected system).
In order to make the qr code as small as possible I am attempting to convert my 32 character hexadecimal GUID to a shorter string that takes advantage of the 36 character alphabet (0-9 and A-Z) available in alphanumeric qr codes.
The whole base conversion is going over my head, so any help is greatly appreciated.
You could store the GUID as a byte array and convert it into Base32.
Also see this related question.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With