Guest User

Untitled

a guest
Feb 27th, 2021
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  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
Add Comment
Please, Sign In to add comment