fix parse_b32_key

This commit is contained in:
Dag Heyman 2017-02-27 14:21:11 +01:00
parent 1c06a9b136
commit 46a0256723
No known key found for this signature in database
GPG Key ID: 06FC004369E7D338

View File

@ -190,6 +190,7 @@ class Controller(object):
return self._parse_b32_key(val)
def _parse_b32_key(self, key):
key = key.upper()
key += '=' * (-len(key) % 8) # Support unpadded
return b32decode(key)