Random string
Oleg Broytmann
phd at phd.pp.ru
Tue Dec 5 07:07:27 EST 2000
On Mon, 4 Dec 2000, Jay O'Connor wrote:
> Is there a good algorithm or existing function for creating a random string such
> as "AFYGADFGWETOQW6DSJD", suitable as a 'session id' for a web session
Run md5 or sha1 over random int, convert the hash to a string and take
any number of characters.
Oleg.
----
Oleg Broytmann http://phd.pp.ru/ phd at phd.pp.ru
Programmers don't die, they just GOSUB without RETURN.
More information about the Python-list
mailing list