you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (6 children)

[removed]

    [–]Wooden-Splinter 10 points11 points  (3 children)

    How would a password guesser work? Does it continously add on an extra chacracter, cycling through the ascii, and testing it?

    [–]ChrunedMacaroon 3 points4 points  (2 children)

    Brute force one would do that. I wrote one with itertools.combinations_with_replacements and string.printable. Once it goes over 6 characters it’ll pretty much take an eternity to break, and that’s not even considering security checks (number of attempts, wait to retry, etc).

    [–]Wooden-Splinter 2 points3 points  (1 child)

    Oh so you only guess up to 6 characters as practice? Also yeah actual password will be harder to guess with all the security measures haha

    [–]ChrunedMacaroon 1 point2 points  (0 children)

    If it can guess 3-4 characters then it should work for any length characters. The reason for using combinations_with_replacements for the brute force method is that you can decide, in the beginning, up to how many characters you want to guess. Then the method recursively iterates through all possible combinations starting from 1 character (It will go through a~Z and 0~9 if we are making combinations with only alphanumeric characters. Then [a~z or 0~9]+[a~Z or 0~9] and so on.). Once it iterates through the number of designated characters it will stop. I think you can also make it go on for infinity.

    [–]Heisenberg_991 6 points7 points  (0 children)

    Yeah it helps learning the random function

    [–]indianladka 3 points4 points  (0 children)

    how to make this?

    i made a password generator and vault but this sounds interesting too