Skip to content

Commit 8f7b152

Browse files
Merge pull request #641 from alexbakker/fix-593-extra
Use GoogleAuthInfo.parseSecret for secrets from Google Authenticator
2 parents 39f18b7 + f012c7c commit 8f7b152

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/main/java/com/beemdevelopment/aegis/importers/GoogleAuthImporter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
import android.content.pm.PackageManager;
55
import android.database.Cursor;
66

7-
import com.beemdevelopment.aegis.encoding.Base32;
87
import com.beemdevelopment.aegis.encoding.EncodingException;
8+
import com.beemdevelopment.aegis.otp.GoogleAuthInfo;
99
import com.beemdevelopment.aegis.otp.HotpInfo;
1010
import com.beemdevelopment.aegis.otp.OtpInfo;
1111
import com.beemdevelopment.aegis.otp.OtpInfoException;
@@ -73,7 +73,7 @@ public Result convert() {
7373

7474
private static VaultEntry convertEntry(Entry entry) throws DatabaseImporterEntryException {
7575
try {
76-
byte[] secret = Base32.decode(entry.getSecret());
76+
byte[] secret = GoogleAuthInfo.parseSecret(entry.getSecret());
7777

7878
OtpInfo info;
7979
switch (entry.getType()) {

0 commit comments

Comments
 (0)