diff options
| author | Joel Beckmeyer <joel@thebeckmeyers.xyz> | 2018-09-25 13:45:54 -0400 |
|---|---|---|
| committer | حسين <zidhussein@gmail.com> | 2018-09-25 18:45:54 +0100 |
| commit | eea0e68dda1eb7248c6d458f52baeedb318b466a (patch) | |
| tree | 73ff2b2f121b8db3097671f0e0639906edc2abea /app/src/androidTest/java/com/zeapo/pwdstore/TotpTest.java | |
| parent | ac889abdd3d71ffb7f064a384c375ec22e7734c4 (diff) | |
| download | HardenedPass-eea0e68dda1eb7248c6d458f52baeedb318b466a.tar.gz HardenedPass-eea0e68dda1eb7248c6d458f52baeedb318b466a.zip | |
Display HOTP code if password contains HOTP secret, unify HOTP and TOTP code (#413)
* Display HOTP code if password contains HOTP secret, unify HOTP and TOTP code
* Add ability to show HOTP instead of showing every decrypt
* Fix off by 1 error
* fix return intent logic so that edits and HOTP increments are properly committed
* fix linting errors
* Fix broken logic for case when a password is created
* add ability to choose if password entry will be updated on HOTP code calculation
Diffstat (limited to 'app/src/androidTest/java/com/zeapo/pwdstore/TotpTest.java')
| -rw-r--r-- | app/src/androidTest/java/com/zeapo/pwdstore/TotpTest.java | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/app/src/androidTest/java/com/zeapo/pwdstore/TotpTest.java b/app/src/androidTest/java/com/zeapo/pwdstore/TotpTest.java deleted file mode 100644 index 500644d1..00000000 --- a/app/src/androidTest/java/com/zeapo/pwdstore/TotpTest.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.zeapo.pwdstore; - -import com.zeapo.pwdstore.utils.Totp; - -import junit.framework.TestCase; - -public class TotpTest extends TestCase { - public void testTotp() { - String code = Totp.calculateCode("JBSWY3DPEHPK3PXP", 0L); - assertEquals("282760", code); - } -} |
