forked from beemdevelopment/Aegis
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for importing FreeOTP 2 backups
I've held off on this in the past, because I was concerned about the security issues related to Java object deserialization. To circumvent that, I've written a parser that understands just enough of the Java Object Serialization format to parse FreeOTP 2 backups. Unfortunately there are a number of issues in FreeOTP 2 that may result in corrupt backups. The importer warns the user about this and tries to salvage as many entries as possible.
- Loading branch information
1 parent
08d900c
commit 3bed287
Showing
10 changed files
with
410 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
353 changes: 349 additions & 4 deletions
353
app/src/main/java/com/beemdevelopment/aegis/importers/FreeOtpImporter.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+3.41 KB
app/src/test/resources/com/beemdevelopment/aegis/importers/freeotp_v2_api23.xml
Binary file not shown.
Binary file added
BIN
+3.46 KB
app/src/test/resources/com/beemdevelopment/aegis/importers/freeotp_v2_api25.xml
Binary file not shown.
Binary file added
BIN
+3.45 KB
app/src/test/resources/com/beemdevelopment/aegis/importers/freeotp_v2_api27.xml
Binary file not shown.
Binary file added
BIN
+3.46 KB
app/src/test/resources/com/beemdevelopment/aegis/importers/freeotp_v2_api34.xml
Binary file not shown.