Skip to content

Instantly share code, notes, and snippets.

@lovio
Created June 9, 2014 02:08
Show Gist options
  • Save lovio/c74dadf052ca2b3017d9 to your computer and use it in GitHub Desktop.
Save lovio/c74dadf052ca2b3017d9 to your computer and use it in GitHub Desktop.
简单的本地token认证
  1. 用户名+ 密码 =》 id + token
  2. str = [参数, random_number] 字典升序.join('')
  3. sign = md5( id + str + token);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment