summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/crypto/srpregister.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap/bitmask/crypto/srpregister.py')
-rw-r--r--src/leap/bitmask/crypto/srpregister.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/leap/bitmask/crypto/srpregister.py b/src/leap/bitmask/crypto/srpregister.py
index 5c0a8efc..61f1899a 100644
--- a/src/leap/bitmask/crypto/srpregister.py
+++ b/src/leap/bitmask/crypto/srpregister.py
@@ -108,7 +108,8 @@ class SRPRegister(QtCore.QObject):
:rparam: (ok, request)
"""
- username = username.lower()
+ username = username.lower().encode('utf-8')
+ password = password.encode('utf-8')
salt, verifier = self._srp.create_salted_verification_key(
username,