Created
November 18, 2011 09:04
-
-
Save bbrodriges/1375965 to your computer and use it in GitHub Desktop.
Python If->Import
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if isinstance( string , str ): | |
from hashlib import md5 | |
return md5( str.encode( string ) ).hexdigest() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment