Advertisement
Guest User

Untitled

a guest
Jun 2nd, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.98 KB | None | 0 0
  1. alf="1234567890QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm<>:,.!@#$%^&*(){}[]"
  2. check="yeah_reverse_the_best"
  3.  
  4. def func(s,step):
  5.     sim=ord(s) ^ ord('f')
  6.     sim=sim + ord('l')
  7.     sim=sim - ord('g')
  8.     if step==0:
  9.         sim=sim + 98
  10.     if step==1:
  11.         sim=sim + 82
  12.     if step==2:
  13.         sim=sim + 77
  14.     if step==3:
  15.         sim=sim + 78
  16.     if step==4:
  17.         sim=sim + 33
  18.     if step==5:
  19.         sim=sim + 94
  20.     if step==6:
  21.         sim=sim + 75
  22.     if step==7:
  23.         sim=sim + 56
  24.     if step==8:
  25.         sim=sim + 76
  26.     if step==9:
  27.         sim=sim + 106
  28.     if step==10:
  29.         sim=sim + 94
  30.     if step==11:
  31.         sim=sim + 93
  32.     if step==12:
  33.         sim=sim + 70
  34.     if step==13:
  35.         sim=sim + 90
  36.     if step==14:
  37.         sim=sim + 96
  38.     if step==15:
  39.         sim=sim + 25
  40.     if step==16:
  41.         sim=sim + 19
  42.     if step==17:
  43.         sim=sim + 22
  44.     if step==18:
  45.         sim=sim + 25
  46.     if step==19:
  47.         sim=sim + 39
  48.     if step==20:
  49.         sim=sim + 40
  50.    
  51.     return sim
  52.  
  53.    
  54. flag=""
  55. step=0
  56. for j in check:
  57.     for i in alf:
  58.         if func(i,step) == ord(j):
  59.             print("--------------",i)
  60.     step+=1
  61. #print(flag)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement