mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-05-16 15:02:54 +00:00
Accept spaces and dashes in secrets from Microsoft Authenticator
A user reported that importing was failing due to this issue
This commit is contained in:
parent
68eb87b096
commit
eb4b7b5d61
1 changed files with 2 additions and 2 deletions
|
@ -4,9 +4,9 @@ import android.content.Context;
|
|||
import android.content.pm.PackageManager;
|
||||
import android.database.Cursor;
|
||||
|
||||
import com.beemdevelopment.aegis.encoding.Base32;
|
||||
import com.beemdevelopment.aegis.encoding.Base64;
|
||||
import com.beemdevelopment.aegis.encoding.EncodingException;
|
||||
import com.beemdevelopment.aegis.otp.GoogleAuthInfo;
|
||||
import com.beemdevelopment.aegis.otp.OtpInfo;
|
||||
import com.beemdevelopment.aegis.otp.OtpInfoException;
|
||||
import com.beemdevelopment.aegis.otp.TotpInfo;
|
||||
|
@ -81,7 +81,7 @@ public class MicrosoftAuthImporter extends DatabaseImporter {
|
|||
|
||||
switch (entry.getType()) {
|
||||
case TYPE_TOTP:
|
||||
secret = Base32.decode(entry.getSecret());
|
||||
secret = GoogleAuthInfo.parseSecret(entry.getSecret());
|
||||
break;
|
||||
case TYPE_MICROSOFT:
|
||||
digits = 8;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue