How to fix the length of the TOTP ?
AjayPara opened this issue · comments
I am just trying this library for generating random TOTP of 6 digits by setting the code digits property but sometimes I am getting the 4/5 digit TOTP.
Can somebody help out how to fix the length of the TOTP?
I can’t remember but I think it returned a number right? If so you need to pad and preappend zeros.
Yes, the number must be zero padded
…On Thu, 8 Nov 2018 at 14:23, CyberMew ***@***.***> wrote:
I can’t remember but I think it returned a number right? If so you need to
pad and preappend zeros.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#71 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGVnahtes9oxcQtkfl3QxZH8ruNpwiLxks5utDBrgaJpZM4YUfOe>
.
Thanks.it works.