strong_password
strong_password copied to clipboard
password variants
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.