gert <gert.cuykens at gmail.com> writes: > s = urandom(10).encode('hex') > AttributeError: 'bytes' object has no attribute 'encode' Oh, Python 3. It's done some different way, someone else will have to specify. I'm still using 2.x.