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?
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?
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