6 kyu

Crack the PIN

32 of 3,052zLuki

Description:

Given is a md5 hash of a five digits long PIN. It is given as string. Md5 is a function to hash your password: "password123" ===> "482c811da5d5b4bc6d497ffa98491e38"

Why is this useful? Hash functions like md5 can create a hash from string in a short time and it is impossible to find out the password, if you only got the hash. The only way is cracking it, means try every combination, hash it and compare it with the hash you want to crack. (There are also other ways of attacking md5 but that's another story) Every Website and OS is storing their passwords as hashes, so if a hacker gets access to the database, he can do nothing, as long the password is safe enough.

What is a hash?

What is md5?

Note: Many languages have build in tools to hash md5. If not, you can write your own md5 function or google for an example.

Here is another kata on generating md5 hashes!

Your task is to return the cracked PIN as string.

This is a little fun kata, to show you, how weak PINs are and how important a bruteforce protection is, if you create your own login.

If you liked this kata, here is an extension with short passwords!

Some of my other katas:
Error Correction #1 - Hamming Code
Hack the NSA
Decode the QR-Code

Algorithms
Cryptography

Similar Kata:

Stats:

CreatedJun 30, 2020
PublishedJun 30, 2020
Warriors Trained9567
Total Skips458
Total Code Submissions8658
Total Times Completed3052
JavaScript Completions358
Python Completions1325
PHP Completions211
PowerShell Completions30
Shell Completions39
Ruby Completions91
C Completions66
Java Completions246
CoffeeScript Completions9
CFML Completions5
C++ Completions62
Prolog Completions6
VB Completions14
C# Completions271
R Completions15
Dart Completions77
Go Completions155
Groovy Completions19
Kotlin Completions85
TypeScript Completions50
Elixir Completions25
Scala Completions32
F# Completions15
Rust Completions31
Total Stars275
% of votes with a positive feedback rating91% of 506
Total "Very Satisfied" Votes431
Total "Somewhat Satisfied" Votes56
Total "Not Satisfied" Votes19
Total Rank Assessments41
Average Assessed Rank
6 kyu
Highest Assessed Rank
5 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • zLuki Avatar
  • B1ts Avatar
  • hobovsky Avatar
Ad