killerserializer is the better way to create a random hash for you & no need to give a text to convert.
import killerserializer
for_confirm_user = killerserializer.serializer()
conf_user = for_confirm_user.generate()
print(conf_user)
output:
hk^gsx&upzo]=+m:'/[ft,y)lr\@(vni<w>.?
unguessable hash easy to use
for email confirmation
verify user
Note: you can use it how you want for that
copyright @ suresh p | The Unlicense