On Wed, Jan 30, 2013 at 10:33 AM, Jabba Laci <jabba.laci at gmail.com> wrote: > if md5: > md5 = hashlib.md5() > md5.update(text) > return md5.hexdigest() Simpler: if md5: return hashlib.md5(text).hexdigest() ChrisA