6 kyu

Crack the PIN

354 of 3,034zLuki

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 Trained9530
Total Skips455
Total Code Submissions8608
Total Times Completed3034
JavaScript Completions354
Python Completions1320
PHP Completions210
PowerShell Completions29
Shell Completions39
Ruby Completions91
C Completions65
Java Completions245
CoffeeScript Completions9
CFML Completions5
C++ Completions61
Prolog Completions6
VB Completions13
C# Completions270
R Completions15
Dart Completions76
Go Completions154
Groovy Completions19
Kotlin Completions85
TypeScript Completions47
Elixir Completions25
Scala Completions32
F# Completions15
Rust Completions31
Total Stars273
% of votes with a positive feedback rating91% of 502
Total "Very Satisfied" Votes427
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