mirror of
https://github.com/nikdoof/decrypt-otpauth-files.git
synced 2026-01-31 14:28:28 +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_type = self.type.uri_value
|
||||||
otp_label = quote(f'{self.issuer}:{self.label}')
|
otp_label = quote(f'{self.issuer}:{self.label}')
|
||||||
otp_parameters = {
|
otp_parameters = {
|
||||||
'secret': base64.b32encode(self.secret).decode("utf-8"),
|
'secret': base64.b32encode(self.secret).decode("utf-8").rstrip("="),
|
||||||
'algorithm': self.algorithm,
|
'algorithm': self.algorithm,
|
||||||
'period': self.period,
|
'period': self.period,
|
||||||
'digits': self.digits,
|
'digits': self.digits,
|
||||||
|
|||||||
Reference in New Issue
Block a user