twofas / 2fas-ios

Source code for 2FAS iOS app
GNU General Public License v3.0
480 stars 35 forks source link

bug: Incorrect intitial HOTP code #113

Open adriamontoto opened 2 weeks ago

adriamontoto commented 2 weeks ago

Bug type

Error at runtime

App version

5.3.7

Device environment

iOS 17.5.1, iPhone 12 Pro

Bug description

I am facing an issue when generating OTP codes using HMAC. The first OTP code generated by 2FAS Auth does not match the first code generated by Google Authenticator or my python code.

Details:

Comment

This discrepancy suggests that 2FAS Auth might be misaligning the OTP generation sequence or using a different starting point for the HMAC-based OTP calculation.

Solution

No response

Additional context

No response

Acknowledgements