one-time-password

Generated codes do not match with PyOTP sample

徘徊边缘 提交于 2020-08-09 08:50:07
问题 I was looking for a Python Time-based OTP library when I found PyOtp. I scanned the sample QR-Code using Google Authenticator and ran the associated sample code import pyotp totp = pyotp.TOTP("JBSWY3DPEHPK3PXP") print("Current OTP:", totp.now()) However, the codes on my phones and the codes which the application generates do not match. I also tried another library (SpookyOTP) and the codes also did not match. Generating my own key with PyOTP, instead of using the sample one, also did not make

Authenticating phone number without sending SMS in Firebase for Android

不羁的心 提交于 2020-05-24 05:06:33
问题 I want to use Firebase phone number authentication. My code is this: LoginActivity.kt import android.os.Bundle import android.util.Log import android.view.View import android.widget.Toast import androidx.appcompat.app.AppCompatActivity import com.google.android.gms.tasks.Task import com.google.firebase.FirebaseException import com.google.firebase.auth.AuthResult import com.google.firebase.auth.FirebaseAuth import com.google.firebase.auth.PhoneAuthCredential import com.google.firebase.auth

Generate a 10-digit TOTP password with a certain key

我怕爱的太早我们不能终老 提交于 2020-05-11 04:39:08
问题 This problem is related to TOTP as specified in RFC6238 here: https://tools.ietf.org/html/rfc6238#section-1.2. I am to implement the RFC6238 to generate a 10-digit TOTP password, which will be used in a POST request later on. The sample input and output for the TOTP is supposed to be like this: Sample Input: Shared key: "ninja@example.comHDECHALLENGE003" (without double quotes) Hash function used: HMAC-SHA-512 T0 = 0, Timestep = 30 seconds (as per specified in RFC6238) Expected TOTP of 10

How to generate OTP Number with 6 digits

夙愿已清 提交于 2020-05-07 12:22:50
问题 What is an OTP number in a login authentication system? Is there any specific algorithm for generating OTP numbers using java (android). Or is an OTP something like random number? How can this be achieved, with optimization. 回答1: Please do not reinvent the wheel - especially in case of security and cryptography. You might end up in a really bad state. Use algorithms, that the community agreed upon like the HOTP and TOTP algorithm specified by the Open Authentication Iniative. These algorithms

Firebase not sending OTP

混江龙づ霸主 提交于 2020-04-10 05:07:06
问题 I had registered a user in firebase using Firebase phone number authentication .For testing that functionality again, I deleted the user account from Firebase console. Now, i am trying to register that number again, its directly going to the onVerificationCompleted() callback without sending the OTP .But the user account is not shown in Firebase console. Please help. Code given below. Also please note that its sending OTP to the new numbers .But not sending OTP to the number which i deleted

TOTP Base32 vs Base64

☆樱花仙子☆ 提交于 2020-03-02 07:29:50
问题 Every TOTP implementation (even FreeOTP by RedHat) I find is using Base32 encoding/decoding for it's generated secret. Why is it not using Base64, since Base32 is using roughly 20% more space and it's (mainly) only advantage is, that it is better human-readable? It is not being shown to the user for generation anyways. While every comment within the implementation says, that its implementation follows RFC6238 / RFC4226, I cannot find anything being said about base32 within the RFC documents.

TOTP Base32 vs Base64

我们两清 提交于 2020-03-02 07:29:05
问题 Every TOTP implementation (even FreeOTP by RedHat) I find is using Base32 encoding/decoding for it's generated secret. Why is it not using Base64, since Base32 is using roughly 20% more space and it's (mainly) only advantage is, that it is better human-readable? It is not being shown to the user for generation anyways. While every comment within the implementation says, that its implementation follows RFC6238 / RFC4226, I cannot find anything being said about base32 within the RFC documents.

How to Implement react native otp retriever and generate hash key for application

旧时模样 提交于 2020-01-16 08:45:23
问题 Beginner to React native I am trying to verify OTP automatically using react-native-sms-retriever I have implemented following example in project Example implemented This exampleis not provudung way to get hash key. you have to get it manually by executing command When I execute command, it won't ask for password. It should ask because of here it is I have generated debug hash key using bellow command executed in 'java/bin' folder. But its not keytool -exportcert -alias androiddebugkey

Not able to hit api to verify otp ( Used Volley)

廉价感情. 提交于 2020-01-15 04:57:06
问题 i am giving the link to the query i have raised on github respository of AndroidHive please take a look my issue- https://github.com/rajatbeck/LoginWithOTP/issues/1 i made some changes like i am registering with single parameter i.e. phone number Original code - http://www.androidhive.info/2015/08/android-adding-sms-verification-like-whatsapp-part-2/ 来源: https://stackoverflow.com/questions/40481530/not-able-to-hit-api-to-verify-otp-used-volley

Google Authenticator code does not match server generated code

狂风中的少年 提交于 2020-01-12 22:29:18
问题 Background I'm currently working on a two-factor authentication system where user are able to authenticate using their smartphone. Before the user can make use of their device they need to verify it first. For this they need to scan a QR code I give them and enter the code that subsequently shows. Problem The scanning of the QR code works fine, and it gets read correctly by the Google Authenticator app. However, the generated codes don't match with the ones I'm generating on the server. What