Guest User

Untitled

a guest
Feb 27th, 2021
74
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from base64 import b16decode
  2. from hashlib import sha512
  3.  
  4. def verify_signature():
  5. ordr = b16decode(request.cookies.get('order'))
  6. if request.cookies.get('signature') == sha512((secret2 + b'|' + ordr)).hexdigest():
  7. if ordr.split(b'|')[-1][7:] == b'Honey-Pistachio':
  8. return True
RAW Paste Data