fork download
  1. # -*- coding: utf8 -*-
  2. import hashlib
  3. import string
  4.  
  5. # Put your encoded data here:
  6. data = "9e6ee6a81566d840790fa18f070827e91201:1300:1270:1305:1288:144:1224:135:1214:1246:1232:1232:1269:1208:1249:1259:1253:1230:179:1298:175:1223:1261:1301:1170:1237:1199:1258:1247:1268:1220612360d377a077ab500c8abedc20dbad"
  7.  
  8. # Put your guessed key here:
  9. privatekey = u"Альфа и Омега"
  10.  
  11. publickey = data[:32]
  12. encoded = data[32:-32].split(":")
  13. signature = data[-32:]
  14.  
  15. # md5 with small letters here
  16. w = ":".join([hashlib.md5((x + privatekey).encode("utf-8")).hexdigest() for x in encoded])
  17. if hashlib.md5(w).hexdigest() != signature:
  18. print "KEY CHECK FAILED."
  19. else:
  20. answer = ""
  21. for i in range(len(encoded)):
  22. answer += chr(int(encoded[i]) - ord(publickey[i % len(publickey)]) - ord(privatekey[i % len(privatekey)]))
  23. print answer
Success #stdin #stdout 0.02s 9208KB
stdin
Standard input is empty
stdout
https://o...content-available-to-author-only...t.xyz/noway/