I want to create or calculate a unique 8-digit ID (checksum/hash/etc) for variable-sized texts.
I am not sure the ID has to be a certain limited length depending on the length of the actual text, but I would like the ID to be as small as possible. I definitely don't want a GUID.
EXAMPLE:
Name comment
------ --------------------
car neon.
sumvac is not my favorite any more but i do like the cooler autom
car neon.
RESULT:
ID Name comment
-------- ------ ------------
AT1UW72Z car neon.
0B1UR7PY sumvac is not my favorite any more but i do like the cooler autom
AT1UW72Z car neon.
I want to add RESULT to a database table. Duplicates are okay since I can use a query to remove them from a query/report run. Or, I can remove them completely (at a later time) and just have unique table entries. But in general, duplicate entries are acceptable.
Is there anything already included in Delphi that supports this? I will be working in XE7 and/or 12.2 IDE's.
Thanks in advanced.