Algorithm to generate a token as survey summary
I think you should try converting your 24-digits (in base 10) number, in another base, which would reduce a lot the length of your token, while keeping the same information.
You should try experimenting with this website for example, which convert in base 36 (10 number + 26 letters):
http://www.unitconversion.org/numbers/base-10-to-base-36-conversion.html
Here, the number 986541236547896541258745 becomes 4GNE5T9XUQO08CKK
I'm sure you can devise an algorithm in base 62 (10 number, 26 lower cases letters, 26 upper cases letters), or event more if you use other characters, such as +-*&amp;&quot;# ... etc
EDIT:
found this website that allows you to convert from and to any bases between 2 and 62:
https://www.dcode.fr/base-n-convert
Here, the number 986541236547896541258745 becomes 4VMCgFPOG10DLH