Skip to content

Instantly share code, notes, and snippets.

@mactanxin
Forked from qingfeng/snippet.sc
Created February 13, 2009 03:49
Show Gist options
  • Save mactanxin/63036 to your computer and use it in GitHub Desktop.
Save mactanxin/63036 to your computer and use it in GitHub Desktop.
# encoding: utf-8
import hashlib
import sys
if __name__ == '__main__':
i = bytes(sys.argv[1],'utf8')
k = hashlib.md5(i).hexdigest()
print(k)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment