This commit is contained in:
2025-11-11 23:03:58 +00:00
parent a642f6d891
commit 27aad6b738
3 changed files with 45 additions and 1 deletions

View File

@@ -9,4 +9,10 @@ For example:
If your secret key is abcdef, the answer is 609043, because the MD5 hash of abcdef609043 starts with five zeroes (000001dbbfa...), and it is the lowest such number to do so.
If your secret key is pqrstuv, the lowest number it combines with to make an MD5 hash starting with five zeroes is 1048970; that is, the MD5 hash of pqrstuv1048970 looks like 000006136ef....
Your puzzle input is yzbqklnj.
Your puzzle input is yzbqklnj.
I'm going to use the RFC 1321 library here, as designing an md5 implementation is a bit too much for right now
Correction, I will use the old style openssl/md5.h