0

I want to get a string from an integer as:

convert(45) VHCDD65D2D5SS This string should also be able to give back the integer. What should be the proper way of doing this?

Unknown
  • 23
  • 4

1 Answers1

0

Try to use a hash method. Hashlib or with Salt and hash a password in Python

To generate the token, I think you can add extra char in front of the ID

Example: ID = 1
string_id = name_1
hashlib = xxxxxx

Amzar
  • 80
  • 7