Skip to content

Commit

Permalink
Minor bugfix
Browse files Browse the repository at this point in the history
Create correct otpauth string in case a different encoding than BASE32 is used
  • Loading branch information
Rookiestyle committed Oct 9, 2020
1 parent 459871f commit c9295fa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/KeePassOTP.cs
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ private ProtectedString GetOTPAuthString()
if (Type == KPOTPType.HOTP)
otpSuffix += "&counter=" + HOTPCounter.ToString();
if (Encoding != KPOTPEncoding.BASE32)
otpSuffix += "&encoder=" + Encoding.ToString();
otpSuffix += "&encoding=" + Encoding.ToString();
if (!string.IsNullOrEmpty(Issuer))
otpSuffix += "&issuer=" + Encode(Issuer, false);
if (Type == KPOTPType.STEAM)
Expand Down
4 changes: 2 additions & 2 deletions src/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.16")]
[assembly: AssemblyFileVersion("0.16")]
[assembly: AssemblyVersion("0.16.1")]
[assembly: AssemblyFileVersion("0.16.1")]
2 changes: 1 addition & 1 deletion version.info
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:
KeePassOTP:0.16
KeePassOTP:0.16.1
KeePassOTP!de:10
KeePassOTP!fr:3
:

0 comments on commit c9295fa

Please sign in to comment.