aboutsummaryrefslogtreecommitdiffstats
path: root/ddns/hash.py
diff options
context:
space:
mode:
authorMarius Halden <marius.h@lden.org>2014-03-17 19:13:28 +0100
committerMarius Halden <marius.h@lden.org>2014-03-17 19:13:28 +0100
commit97fcbda00f1a84a696d8458c377cc4447bf1d7fe (patch)
treebc9a6ad791980387f751f294cd2f80ef092cc5d1 /ddns/hash.py
parentd398793a759acc1d8bf2484f3533d0e9744bd429 (diff)
downloadDDNS.py-97fcbda00f1a84a696d8458c377cc4447bf1d7fe.tar.gz
DDNS.py-97fcbda00f1a84a696d8458c377cc4447bf1d7fe.tar.bz2
DDNS.py-97fcbda00f1a84a696d8458c377cc4447bf1d7fe.tar.xz
Removed unused variable from hash.py
Diffstat (limited to 'ddns/hash.py')
-rw-r--r--ddns/hash.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/ddns/hash.py b/ddns/hash.py
index 7bb3b3b..7f74e25 100644
--- a/ddns/hash.py
+++ b/ddns/hash.py
@@ -1,15 +1,13 @@
import hashlib
-algs = [None, 'sha1', 'sha256', 'sha512']
-
def hash(algo, passwd):
- if algo == None: # None
+ if algo == None:
return passwd
- if algo == 'sha1': # sha1
+ if algo == 'sha1':
return sha1(passwd)
- if algo == 'sha256': # sha256
+ if algo == 'sha256':
return sha256(passwd)
- if algo == 'sha512': # sha512
+ if algo == 'sha512':
return sha512(passwd)
return passwd