mirror of
https://github.com/nikdoof/decrypt-otpauth-files.git
synced 2025-12-13 08:22:16 +00:00
Remove padding on Base32 encoded per spec.
This commit is contained in:
@@ -122,7 +122,7 @@ class OTPAccount:
|
||||
otp_type = self.type.uri_value
|
||||
otp_label = quote(f'{self.issuer}:{self.label}')
|
||||
otp_parameters = {
|
||||
'secret': base64.b32encode(self.secret).decode("utf-8"),
|
||||
'secret': base64.b32encode(self.secret).decode("utf-8").rstrip("="),
|
||||
'algorithm': self.algorithm,
|
||||
'period': self.period,
|
||||
'digits': self.digits,
|
||||
|
||||
Reference in New Issue
Block a user