Skip to content

Instantly share code, notes, and snippets.

@qingfeng
Forked from anonymous/snippet.sc
Created February 7, 2009 16:40
Show Gist options
  • Save qingfeng/59931 to your computer and use it in GitHub Desktop.
Save qingfeng/59931 to your computer and use it in GitHub Desktop.
First Python 3000 Script
# 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