trying to get hash from os.urandom

Grzegorz Smith gregtech at
Mon Jan 23 22:13:02 CET 2006

Hi all
I'm writing small python module which will be a password generator. I read
that python can use system random generator on machine whit *nix os. So i
start using os.urandom and when i generate random string i get something
like this:  urandom(8) ->
How can I convert this to hash? i change python defaultencoding from ascii
to utf-8 and try convert this to unicode object but I only get:
Any help i will appreciated. Does anyone use os.urandom to cryptography?

More information about the Python-list mailing list