Skip to content

Commit

Permalink
switched form md5 to hashlib
Browse files Browse the repository at this point in the history
  • Loading branch information
pigeonflight committed Dec 28, 2010
1 parent c2c5177 commit d173842
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vtigerauthdemo.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import urllib2
import json
import urllib
import md5
from hashlib import md5

### define the account specific information
# find the Access Key under preferences > User Advanced Options
Expand All @@ -23,7 +23,7 @@
token = json.loads(response)['result']['token']

# use the token to + accesskey to create the tokenized accessKey
key = md5.md5(token + accessKey)
key = md5(token + accessKey)
tokenizedAccessKey = key.hexdigest()
values['accessKey'] = tokenizedAccessKey

Expand Down

0 comments on commit d173842

Please sign in to comment.