akanass / rx-otp

HMAC-based (HOTP) and Time-based (TOTP) One-Time Password manager. Works with Google Authenticator for Two-Factor Authentication.
MIT License
76 stars 9 forks source link

Generate TOTP that doesn't start with zero #13

Closed erfanium closed 4 years ago

erfanium commented 4 years ago

Sometimes TOTP codes starts with zero like: 054878, It's not good for us How can I prevent this?

akanass commented 4 years ago

Hi @erfanium thanks to reach me, for your question it's not possible because TOTP can start with zero like Google Authenticator.

Sorry and hope you will enjoy it.