Invalid TOTP for c#
-
@dstelangre : will you plz help me to resolve the same?
-
@dstelangre said in Invalid TOTP for c#:
public static string GetTotp()
{
var secretKey = OtpNet.Base32Encoding.ToBytes("totp key that appears below QR code ");
var totp = new Totp(secretKey);
var otp = totp.ComputeTotp();
return otp;
}Thank you. It's working.
-
@dstelangre you can put your solution on the below path which will help to others also,
-
@Vishal-naykawala If still you have issue ? connect me on email dstelangre@gmail.com
-
@dstelangre , Thank you, your solution working.
-
If anyone want updated DLL with TOTP please email me, its free
-
Hello Team,
Please update for C#.Net sdk or provide the latest dll after fixing such erro.
-
-
@Nichil72 Please check my comments below on same discussion , solution is provided , and I am not from Angel Team ,Thanks
-
@dstelangre said in Invalid TOTP for c#:
Please share the code on watsapp on 7533851081. Need ur help bro.
-
@vijayyande please help me regarding this Issue. Facing such Issue while declaring the function GetTotp().
-
@Nichil72 . just add OtpNet
nuget package -
@dstelangre Not able to download the package Otp.net plz help
-
-
@Nichil72 Will you plz share your contact no. on my watsapp on 7533851081.
-
@dstelangre Will you plz share your contact no. on my watsapp on 7533851081.
-
@Nichil72 done
-
Hello Team,
@admin @administrators Please fix the Issue and upload the code on github. So that we can download. Please do it ASAP. -
use below code to generate TOTP using otp.net
https://github.com/kspearrin/Otp.NET
public static string genTOTP(string secret) { var totp = new Totp(OtpNet.Base32Encoding.ToBytes(secret)); if( totp.RemainingSeconds() < 2 ) { Thread.Sleep(3); } return totp.ComputeTotp(); }
-
@dstelangre I can integrate python solution in C#.If you wish to do so reply me on utsav.moradiya3@gmail.com.Instant code solution.