Guest User

Untitled

a guest
Dec 10th, 2018
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. 2 Introduction
  2. You will write a program that will try to crack a password based on some hints. The
  3. problem consists of parts A and B, each worth 5 points.
  4. 1. Each password character is going to be one of these 9 uppercase letters, from A to I:
  5. ABCDEFGHI
  6. 2. No other characters will appear in the password.
  7. 3. The password is N characters long.
  8. If you knew nothing else about the password, the number of valid password combi-
  9. nations would be 9N. However, if you know more about the password, you can eliminate
  10. some combinations.
  11. Your program will \attempt" passwords by printing them out to screen.
  12. 3 Part A (5 points)
  13.  Assume the password is 4 characters long.
  14.  Without hints, you would have to try 94 = 6561 passwords, everything from AAAA, AAAB
  15. all the way to IIII.
  16.  Thankfully, you have additional information on these passwords:
  17. - The first letter of the password is either 'B' or 'C'.
  18. - Unless you are looking at the last letter of the password:
  19. If a letter 'E' occurs in the password,
  20. the following letter will be either 'B' or 'H'.
  21. - The letter 'I' can occur at most 1 time in the password.
  22. 1. Write a program that prints out all of the combinations that are possible using the
  23. hints above.
  24. 2. Each password needs to be printed on a separate line. No other text should be
  25. printed.
Add Comment
Please, Sign In to add comment