Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about hmacsha1

Read more about hmacsha1

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - hmacsha1

why my code doesn't generate the same OTP like google authenticator?

someone know why this TOTP code doesn't generate the same OTP like google authenticator??? the SHA1-HASH function is working well, it's just the final OTP that dosen't generated correct. I tried to c...
test-img

daniel danino

c

sha1

hmacsha1

google-authenticator

totp

Votes: 0

Answers: 1

Latest Answer

You have some UB (undefined behavior). You're doing strlen(counter) but counter is unitialized. And, for crypto, you probably want sizeof(counter) as you've done in other places. There are other place...
test-img

Craig Estey

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved