Florian Bouillon 1060cb8a09
Added the four first days of 2015
Yes i'm gonna do them all !

Signed-off-by: Avior <github@avior.me>
2021-12-07 17:03:46 +01:00

16 lines
251 B
TypeScript

import crypto from 'crypto'
// const input = "pqrstuv"
const input = "yzbqklnj"
let hash = ""
let i = 0
do {
hash = crypto.createHash('md5').update(input + ++i).digest('hex')
} while (!hash.startsWith('00000'))
console.log(
"Result:", i, hash
)