Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs

    Invalid TOTP for c#

    General Discussion
    0
    34
    244
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • V
      Vishal.naykawala last edited by

      Re: Invalid TOTP

      Here getting reply for py but what about C#?

      D 1 Reply Last reply Reply Quote 1
      • D
        dstelangre @Vishal.naykawala last edited by

        @admin @administrators I have same issue please provide the solution for c#

        1 Reply Last reply Reply Quote 1
        • V
          vijayyande last edited by

          please provide totp update for c#

          D 1 Reply Last reply Reply Quote 2
          • D
            dstelangre @vijayyande last edited by

            @vijayyande @Vishal-naykawala , I have fix the issue my own , Modified DLL and created method to get Realtime totp in code itself no need to get from mobile and enter into code all working , if you want fix ping me .

            A A N 4 Replies Last reply Reply Quote 0
            • A
              aruiwale @dstelangre last edited by

              @dstelangre please provide DLL

              V 1 Reply Last reply Reply Quote 0
              • A
                abhi5883 @dstelangre last edited by

                @dstelangre please share code to abhijeet.001@gmail.com or share it somehow. Whatsapp : 9004483239

                A D 2 Replies Last reply Reply Quote 0
                • A
                  admin @abhi5883 last edited by

                  @abhi5883 @dstelangre @Vishal-naykawala @vijayyande @aruiwale

                  I am sorry but modifying C# library is not on our list. Our SDKs are all open source, and we encourage pull requests and other contributions from the community.

                  1 Reply Last reply Reply Quote -1
                  • D
                    dstelangre @abhi5883 last edited by

                    @abhi5883 sent on email

                    1 Reply Last reply Reply Quote 0
                    • D
                      dstelangre last edited by

                      Here is DLL and TOTP generation code . just add OtpNet
                      nuget package

                      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;
                      }

                      DLL link:

                      https://drive.google.com/file/d/1Z6Z016OoDDuOdKiBQNMVly-lkvUMAbbX/view?usp=sharing

                      V S 3 Replies Last reply Reply Quote 1
                      • V
                        Vishal.naykawala @aruiwale last edited by

                        @dstelangre : will you plz help me to resolve the same?

                        D 1 Reply Last reply Reply Quote 0
                        • V
                          Vishal.naykawala @dstelangre last edited by

                          @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.

                          1 Reply Last reply Reply Quote 0
                          • V
                            Vishal.naykawala @dstelangre last edited by

                            @dstelangre you can put your solution on the below path which will help to others also,

                            https://github.com/angel-one/smartapi-dotnet

                            1 Reply Last reply Reply Quote 0
                            • D
                              dstelangre @Vishal.naykawala last edited by

                              @Vishal-naykawala If still you have issue ? connect me on email dstelangre@gmail.com

                              V 1 Reply Last reply Reply Quote 0
                              • V
                                Vishal.naykawala @dstelangre last edited by

                                @dstelangre , Thank you, your solution working.

                                1 Reply Last reply Reply Quote 0
                                • V
                                  vijayyande last edited by

                                  If anyone want updated DLL with TOTP please email me, its free

                                  N U S 3 Replies Last reply Reply Quote 0
                                  • N
                                    Nichil72 last edited by

                                    Hello Team,

                                    Please update for C#.Net sdk or provide the latest dll after fixing such erro.

                                    1 Reply Last reply Reply Quote 1
                                    • N
                                      Nichil72 @dstelangre last edited by

                                      @dstelangre

                                      D 1 Reply Last reply Reply Quote 0
                                      • D
                                        dstelangre @Nichil72 last edited by

                                        @Nichil72 Please check my comments below on same discussion , solution is provided , and I am not from Angel Team ,Thanks

                                        1 Reply Last reply Reply Quote 0
                                        • N
                                          Nichil72 @dstelangre last edited by

                                          @dstelangre said in Invalid TOTP for c#:

                                          @vijayyande @Vishal-naykawala

                                          Please share the code on watsapp on 7533851081. Need ur help bro.

                                          1 Reply Last reply Reply Quote 0
                                          • N
                                            Nichil72 @vijayyande last edited by

                                            @vijayyande please help me regarding this Issue. Facing such Issue while declaring the function GetTotp().
                                            67d3d713-9c2b-4082-90f9-546a4367fdca-image.png

                                            D 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post