Skip to content

Commit

Permalink
Remove password debug prints
Browse files Browse the repository at this point in the history
  • Loading branch information
dmrd committed May 12, 2013
1 parent cf8d6a4 commit f252e70
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions camera/oz.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,14 @@ def decodePassword(handshake, email):
if (len(key) % 16 != 0):
key += '-' * (16 - len(key) % 16)
print("Email: " + str(email))
print("Key: " + str(key))
#print("Key: " + str(key))
cipher = AES.new(key)
if email in userData:
password = cipher.decrypt(userData[email]['password'])
password = string.rstrip(password, '0')
try:
password.encode('utf-8')
print(password[:-1])
#print(password[:-1])
return password[:-1]
except:
print("Failure")
Expand All @@ -94,7 +94,7 @@ def addUser(fullname, email, password, handshake):
# Pad key and password
if (len(key) % 16 != 0):
key += '-' * (16 - len(key) % 16)
print(key)
#print(key)
cipher = AES.new(key)
password += '1'
if (len(password) % 16 != 0):
Expand All @@ -119,6 +119,7 @@ def getName(email):
else:
return "NA"


def sendText(code):
texting.send_text(str(code))

Expand Down

0 comments on commit f252e70

Please sign in to comment.