Breaking Password Generator

Those useless and unnecessary password restrictions really does blow stuff up.

To disarm this module, the defuser needs to input a 6 - 7 character password and submit the password at the correct time.

If any of the following modules are present, UltraStores, Ultimate Cycle, Bamboozled Again; type in “*DEAD*” and just submit that. (You’re going to blow up anyway from those modules.)

Otherwise, this password is split into four parts. Concatenate the four parts in the order calculated from top to bottom to obtain your password.

Part I:

  1. Take the first letter in the bomb’s serial number.
  2. Find that letter from the serial number in the table to obtain the letter for this part.
    A, G, M, S, Y B, H, N, T, Z C, I, O, U D, J, P, V E, K, Q, W F, L, R, X
    B C D E F A
  3. This is part 1 of your password.

Part II:

  1. Take the number of indicators and modulo this by 6.
  2. Take the number of batteries and modulo this by 6.
  3. Take the number of ports and modulo this by 6.
  4. Find the respective letter for each of these values below. These 3 values after being converted to letters will be treated as a list for the next step.
    0 1 2 3 4 5
    A B C D E F
  5. If the number of indicators, the number of batteries, and the number of ports are all different (e.g. 4, 2, 1), the second part is created by concatenating the second letter, the first letter, and the third letter from that list, in that order. Otherwise, the second part is created by concatenating the third letter, the first letter, and the second letter from that list, in that order.

Part III:

Only use the top-most condition that is satisfied. The character used from that condition will be the third part of your password.

  • If there is a Question Mark module on the bomb, use “?”.
  • Otherwise, if there is an Astrology module on the bomb, use “*”.
  • Otherwise, if there are modules that contains “Logic” or “Boolean” in its name on the bomb, use “&”.
  • Otherwise, if there are modules that contains “Code” in its name on the bomb, use “/”.
  • Otherwise, if there are modules that contains “Alphabet” in its name on the bomb, use “@”.
  • Otherwise, use “-”.

Part IV:

The following is calculated when the submit button is pressed:

  1. Take the number of solved modules.
  2. Take the number of unsolved modules.
  3. Take the number of minutes remaining on the bomb.
  4. Multiply those three numbers together.
  5. Add the last digit of the serial number.
  6. Modulo 100.
  7. DO NOT APPEND 0 IF THE RESULT AFTER MODULO 100 IS LESS THAN 10.
  8. This is the fourth part of your password.

If the input is correct, the module will be disarmed. Otherwise, the module will give a strike and the input will clear itself.
The module will also strike if you try to input more than 7 characters.