Advertisement
Guest User

Untitled

a guest
Dec 8th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. You are faced with a security door designed by Easter Bunny engineers that seem to have acquired most of their security knowledge by watching hacking movies.
  2.  
  3. The eight-character password for the door is generated one character at a time by finding the MD5 hash of some Door ID (your puzzle input) and an increasing integer index (starting with 0).
  4.  
  5. A hash indicates the next character in the password if its hexadecimal representation starts with five zeroes. If it does, the sixth character in the hash is the next character of the password.
  6.  
  7. For example, if the Door ID is abc:
  8.  
  9. The first index which produces a hash that starts with five zeroes is 3231929, which we find by hashing abc3231929; the sixth character of the hash, and thus the first character of the password, is 1.
  10. 5017308 produces the next interesting hash, which starts with 000008f82..., so the second character of the password is 8.
  11. The third time a hash starts with five zeroes is for abc5278568, discovering the character f.
  12. In this example, after continuing this search a total of eight times, the password is 18f47a30.
  13.  
  14. Given the actual Door ID, what is the password?
  15.  
  16. Your puzzle input is abbhdwsy.
  17.  
  18. Answer:
  19. [Submit]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement