mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-30 17:57:46 +03:00
fix parse_b32_key
This commit is contained in:
parent
1c06a9b136
commit
46a0256723
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user