Skip to content

Avoid generating backup codes composed only of letters or only of numbers #233

@Ahosall

Description

@Ahosall

Description

Currently, the script is generating backup codes that consist only of numbers or only of letters. However, according to Discord’s backup code rules, valid codes are composed of a mix of letters and numbers, not exclusively letters or numbers.

Describe the solution you'd like

I suggest adding a validation rule, if possible, during backup code generation to filter out codes that contain only numbers or only letters. This could slightly increase the chances of success while avoiding attempts with clearly invalid codes.

Possible combinations using only letters: 208,827,064,576
Possible combinations using only numbers: 100,000,000

This would reduce the total search space from 2,821,109,907,456 to 2,612,382,842,880, representing an approximate 7.39% reduction.

Describe alternatives you've considered

No response

Any other context/information?

I'll use this space to ask a question. Were you able to recover your account? 😆 How long did it take to get the OTP or backup code right?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions