M
Magnus Warker
Hi,
I want users to register on a site and send confirmation emails to them.
These emails should contain a link like this:
http://myurl?registration=E4AC4BD4
Here, "E4AC4BD4" should be a unique string. My idea for such a string is
just to hash an integer, i. e. the internal database key for the
registration record.
However, I actually don't know how to get such a hash. I tried BCrypt,
but this produces hashes built out of characters that I would not want
to be in a URL, e. g. commatas and that.
I would like to have a string like this:
- hexadecimal only
- fixed size, e. g. always n characters, independend of the integer
Can you help?
Thank you!
Magnus
I want users to register on a site and send confirmation emails to them.
These emails should contain a link like this:
http://myurl?registration=E4AC4BD4
Here, "E4AC4BD4" should be a unique string. My idea for such a string is
just to hash an integer, i. e. the internal database key for the
registration record.
However, I actually don't know how to get such a hash. I tried BCrypt,
but this produces hashes built out of characters that I would not want
to be in a URL, e. g. commatas and that.
I would like to have a string like this:
- hexadecimal only
- fixed size, e. g. always n characters, independend of the integer
Can you help?
Thank you!
Magnus