Re: hashlib in one line

2010-11-29 Thread Thomas Guettler
Thank you, I was blind: See "condensed": http://docs.python.org/library/hashlib.html Stefan Sonnenberg-Carstens wrote: > Am 29.11.2010 14:50, schrieb Thomas Guettler: >> Hi, >> >> I think it would be nice if you could use the hashlib in one line: >> >&g

Re: hashlib in one line

2010-11-29 Thread Stefan Sonnenberg-Carstens
Am 29.11.2010 14:50, schrieb Thomas Guettler: Hi, I think it would be nice if you could use the hashlib in one line: hashlib.sha256().update('abc').hexdigest() Unfortunately update() returns None. Is there a way to convert a string to the hexdigest of sha256 in one line? Thom

Re: hashlib in one line

2010-11-29 Thread J. Gerlach
Am 29.11.2010 14:50, schrieb Thomas Guettler: > Hi, > > I think it would be nice if you could use the hashlib in one line: > > hashlib.sha256().update('abc').hexdigest() > > Unfortunately update() returns None. > > Is there a way to convert a string t

hashlib in one line

2010-11-29 Thread Thomas Guettler
Hi, I think it would be nice if you could use the hashlib in one line: hashlib.sha256().update('abc').hexdigest() Unfortunately update() returns None. Is there a way to convert a string to the hexdigest of sha256 in one line? Thomas -- Thomas Guettler, http://www.thomas-guet