Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public class StratumImporter extends DatabaseImporter {
private enum Algorithm {
SHA1,
SHA256,
SHA384,
SHA512
}

Expand Down
3 changes: 2 additions & 1 deletion app/src/main/java/com/beemdevelopment/aegis/otp/OtpInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ public void setSecret(byte[] secret) {

public static boolean isAlgorithmValid(String algorithm) {
return algorithm.equals("SHA1") || algorithm.equals("SHA256") ||
algorithm.equals("SHA512") || algorithm.equals("MD5");
algorithm.equals("SHA384") || algorithm.equals("SHA512") ||
algorithm.equals("MD5");
}

public void setAlgorithm(String algorithm) throws OtpInfoException {
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/arrays.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<string-array name="otp_algo_array">
<item>SHA1</item>
<item>SHA256</item>
<item>SHA384</item>
<item>SHA512</item>
</string-array>

Expand Down
1 change: 1 addition & 0 deletions docs/vault.md
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ The following algorithms are supported for HOTP and TOTP:
|:----------|:---------|
| SHA-1 | "SHA1" |
| SHA-256 | "SHA256" |
| SHA-384 | "SHA384" |
| SHA-512 | "SHA512" |

##### Steam
Expand Down