How to generate a verification code/number?

前端 未结 9 2055
慢半拍i
慢半拍i 2020-12-07 16:51

I\'m working on an application where users have to make a call and type a verification number with the keypad of their phone.

I would like to be able to detect if th

9条回答
  •  广开言路
    2020-12-07 17:40

    • I must have a reasonnable number of possible combinations (let's say 1M)
    • The code must be as short as possible, to avoid errors from the user

    Well, if you want it to have at least one million combinations, then you need at least six digits. Is that short enough?

提交回复
热议问题