Skip to content

Instantly share code, notes, and snippets.

@0awawa0
Created April 17, 2022 16:50
Show Gist options
  • Save 0awawa0/63e22f1170d66bfda59d31ebc85172ed to your computer and use it in GitHub Desktop.
Save 0awawa0/63e22f1170d66bfda59d31ebc85172ed to your computer and use it in GitHub Desktop.
import json
# Step 1: Generate tag t
payload1 = json.dumps({"action": "tag", "message": (b"\x00" * 16).hex()})
print(payload1)
# Step 2: Use tag t to generate new message
tag = input("tag >> ")
payload2 = json.dumps({"action": "verify", "message": (b"\x00" * 16).hex() + tag, "tag": tag})
print(payload2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment