Skip to content

Instantly share code, notes, and snippets.

@ajtazer
Created May 12, 2023 12:41
Show Gist options
  • Save ajtazer/78fbdf8594bdf87d08581187c17779e8 to your computer and use it in GitHub Desktop.
Save ajtazer/78fbdf8594bdf87d08581187c17779e8 to your computer and use it in GitHub Desktop.
import hashlib
import time
# Get 100 input strings
inputs = []
print("Enter 100 input strings:")
for i in range(100):
inputs.append(input())
# Hash each input using MD5 and concatenate the results
concatenated = ""
for s in inputs:
hashed = hashlib.md5(s.encode()).hexdigest()
concatenated += hashed
# Hash the concatenated string using MD5
final_hash = hashlib.md5(concatenated.encode()).hexdigest()
print("Final Hash: ", final_hash)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment