[issue6598] calling email.utils.make_msgid frequently has a non-trivial probability of generating colliding ids

Serhiy Storchaka report at bugs.python.org
Tue May 19 09:23:10 CEST 2015


Serhiy Storchaka added the comment:

Now there is a question. Is it worth to use base16 (hexadecimal) to compact message id to 34 characters or base32 to compact it to 27 characters? Using base16 is pretty easy: just replace %d with %x. Using base32 is more complicated.

With base64 and base85 the length can be decreased to 23 and 21, but I doubt that this is safe.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6598>
_______________________________________


More information about the Python-bugs-list mailing list