Skip to content

password variants #27

@agronv

Description

@agronv

I noticed that the reverse of a password is not included in all the variants of a password.

# Returns all variants of a given password including the password itself
def self.all_variants(password)
      passwords = [password.downcase]
      passwords += keyboard_shift_variants(password)
      passwords += leet_speak_variants(password)
      passwords.uniq
end

shouldn't something like passwords += [password.downcase.reverse] be added.

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