Re: trying to get hash from os.urandom

2006-01-23 Thread Robert Kern
Paul Rubin wrote: > IMO it's better to use words than strings of letters. Try something > like (untested): > >import binascii,os >short_words = [w.strip() for w in file('/usr/dict/words') if len(w) < 8] >assert len(short_words) > 5000 >passphrase = [] > >for i in range(2):

Re: trying to get hash from os.urandom

2006-01-23 Thread Paul Rubin
Grzegorz Smith <[EMAIL PROTECTED]> writes: > '\xec2a\xe2\xe2\xeb_\n',"\x9f\\]'\xad|\xe6\xeb",'\xb0\xf8\xd3\xa0>01\xaf'. > 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: Don't use totally arbitrary 8-bit