Skip to content

Commit

Permalink
remove pycrypto requirements, use standard hashlib
Browse files Browse the repository at this point in the history
  • Loading branch information
lusum committed Jul 28, 2015
1 parent 9e8bef5 commit 62dc45d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions default.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import re
import random,xbmcplugin,xbmcgui, datetime, time, urllib,urllib2
import xml.etree.ElementTree as ET
from Crypto.Hash import SHA256
import hashlib
import xbmcaddon
import ssl

Expand Down Expand Up @@ -165,10 +165,10 @@ def AMPACHECONNECT():
nTime = int(time.time())
myTimeStamp = str(nTime)
sdf = ampache.getSetting("password")
hasher = SHA256.new()
hasher = hashlib.new('sha256')
hasher.update(ampache.getSetting("password"))
myKey = hasher.hexdigest()
hasher = SHA256.new()
hasher = hashlib.new('sha256')
hasher.update(myTimeStamp + myKey)
myPassphrase = hasher.hexdigest()
myURL = ampache.getSetting("server") + '/server/xml.server.php?action=handshake&auth='
Expand Down

0 comments on commit 62dc45d

Please sign in to comment.