Defuse the bomb! (retired)
Description:
Today you are Ethan Hunt, and you won't be happy about it because you were just kidnapped and left unconscious. When you wake up you find yourself hands tied inside a van. As soon as you free yourself you realize there is a very big bomb next to you.
Your mission, should you choose to accept it, is to defuse the bomb using a secret password before it's to late and explodes.
You manage to contact your friend Benji so he can help you.
Task
You are given a hashed password, for example:
"8fa66791564054ff7a5d8226c059de4c579d4109540a2d7ff715f8d829873ec5"
And you must dehash it somehow... Twice.
Benji tells you that the original password was hashed with sha256
algorithm and then hashed again (same algorithm).
The result of the previos hash should be:
winner
Once you get the original password return it.
Example
# Given hash -> 68294cf2dcf09372f59e46bacf9e4fa2dc0822c0ed8d45b0b351f83789625b06
defuse_the_bomb(password_hash) # Must return "banana"
# Password -> banana
# First hash -> b493d48364afe44d11c0165cf470a4164d1e2609911ef998be868d46ade3de4e
# Second hash -> 68294cf2dcf09372f59e46bacf9e4fa2dc0822c0ed8d45b0b351f83789625b06
Tips
Your good friend Benji calls you on the last moment and tells you that the password to defuse the bomb was last seen on the file wordlist-skipfish.fuzz.txt
Good luck.
Similar Kata:
Stats:
Created | Dec 24, 2022 |
Warriors Trained | 10 |
Total Skips | 0 |
Total Code Submissions | 101 |
Total Times Completed | 6 |
Python Completions | 6 |
JavaScript Completions | 0 |
Total Stars | 0 |
% of votes with a positive feedback rating | 0% of 4 |
Total "Very Satisfied" Votes | 0 |
Total "Somewhat Satisfied" Votes | 0 |
Total "Not Satisfied" Votes | 4 |
Total Rank Assessments | 5 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 7 kyu |