Hash
Using a new Python library to solve a challenge.
Problem Description
Walkthrough
import hashlib
result = hashlib.md5(b'GeeksforGeeks').hexdigest()
print(f"The byte equivalent of hash is : {result}")Last updated
Using a new Python library to solve a challenge.
import hashlib
result = hashlib.md5(b'GeeksforGeeks').hexdigest()
print(f"The byte equivalent of hash is : {result}")Last updated
import hashlib
input = 'ckczppom'
key = 0
while True:
string = input + str(key)
hash = hashlib.md5(string.encode()).digest().hex()
if hash[0:6] == '000000':
print('flag{' + str(key) + '}')
break
key = key + 1