Skip to content

Instantly share code, notes, and snippets.

@hzlzh
Created September 7, 2012 07:56
Show Gist options
  • Save hzlzh/3664208 to your computer and use it in GitHub Desktop.
Save hzlzh/3664208 to your computer and use it in GitHub Desktop.
get_key
import md5
import hashlib
def get_key(api_key,api_secret,method):
""" user.register
user.degree
user.sector
user.duty
event.partner """
src = api_key+api_secret+method
m = md5.new()
m.update(src)
dest = m.hexdigest()
return dest
print get_key('1','2','3')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment