hashlib in one line

Thomas Guettler hv at tbz-pariv.de
Mon Nov 29 14:50:50 CET 2010


I think it would be nice if you could use the hashlib in one line:


Unfortunately update() returns None.

Is there a way to convert a string to the hexdigest of sha256 in one line?


Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de

More information about the Python-list mailing list