Skip to content

Instantly share code, notes, and snippets.

@jin10086
Created June 23, 2020 15:18
Show Gist options
  • Save jin10086/9415ad52f6f3be4b047edc788fc7c0cb to your computer and use it in GitHub Desktop.
Save jin10086/9415ad52f6f3be4b047edc788fc7c0cb to your computer and use it in GitHub Desktop.
from hashlib import md5
def Hash(context):
result = md5(bytes(context, "utf8"))
for i in range(0, 10000000):
result = md5(result.digest())
return result.hexdigest()
key = input("Please enter 8-digit PIN:")
if Hash(key) == "5f4654140971c47658de19d62ba472b6":
print("ok")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment