There is a database and a string is used as the primary key. How can it be converted into a unique number (preferably not too long)?

0