diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/general/smsCommunicator/otp/OneTimePassword.kt b/app/src/main/java/info/nightscout/androidaps/plugins/general/smsCommunicator/otp/OneTimePassword.kt index a3e1e9a1f1..2f49ae25ef 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/general/smsCommunicator/otp/OneTimePassword.kt +++ b/app/src/main/java/info/nightscout/androidaps/plugins/general/smsCommunicator/otp/OneTimePassword.kt @@ -1,7 +1,7 @@ package info.nightscout.androidaps.plugins.general.smsCommunicator.otp import android.util.Base64 -import com.eatthepath.otp.TimeBasedOneTimePasswordGenerator +import com.eatthepath.otp.HmacOneTimePasswordGenerator import com.google.common.io.BaseEncoding import info.nightscout.androidaps.Constants import info.nightscout.androidaps.R @@ -23,7 +23,7 @@ class OneTimePassword @Inject constructor( private var key: SecretKey? = null private var pin: String = "" - private val totp = TimeBasedOneTimePasswordGenerator() + private val totp = HmacOneTimePasswordGenerator() init { instance = this