aboutsummaryrefslogtreecommitdiffstats
path: root/app/src/main/java/com/zeapo/pwdstore/utils/Otp.java
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/java/com/zeapo/pwdstore/utils/Otp.java')
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/utils/Otp.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/utils/Otp.java b/app/src/main/java/com/zeapo/pwdstore/utils/Otp.java
index a2ee2488..0092d085 100644
--- a/app/src/main/java/com/zeapo/pwdstore/utils/Otp.java
+++ b/app/src/main/java/com/zeapo/pwdstore/utils/Otp.java
@@ -4,7 +4,6 @@
*/
package com.zeapo.pwdstore.utils;
-import android.util.Log;
import java.math.BigInteger;
import java.nio.ByteBuffer;
import java.security.InvalidKeyException;
@@ -13,6 +12,7 @@ import java.util.Arrays;
import javax.crypto.Mac;
import javax.crypto.spec.SecretKeySpec;
import org.apache.commons.codec.binary.Base32;
+import timber.log.Timber;
public class Otp {
@@ -34,10 +34,10 @@ public class Otp {
mac = Mac.getInstance(ALGORITHM);
mac.init(signingKey);
} catch (NoSuchAlgorithmException e) {
- Log.e("TOTP", ALGORITHM + " unavailable - should never happen", e);
+ Timber.tag("TOTP").e(e, "%s unavailable - should never happen", ALGORITHM);
return null;
} catch (InvalidKeyException e) {
- Log.e("TOTP", "Key is malformed", e);
+ Timber.tag("TOTP").e(e, "Key is malformed");
return null;
}