trim TOTP seed to close #340

This commit is contained in:
Philipp Crocoll
2019-12-16 12:39:20 +01:00
parent b7f7b0d470
commit 7f5ec35ada

View File

@@ -229,7 +229,7 @@ namespace KeeTrayTOTP.Libraries
/// <returns>Time-based One Time Password encoded byte array.</returns>
public string Generate(string key)
{
byte[] bkey = Base32.Decode(key);
byte[] bkey = Base32.Decode(key.Trim());
return this.GenerateByByte(bkey);
}