It generates payload and hash value for length extension against SHA1 and SHA-256.
You can generate attack payload and hash by modifying 3 lines below as what you want.
- length_extension_sha1/length_extension_sha1.py
EXPECTED_KEY_LEN = 32 ORIGIN_STRING = b"This Is An Original Data" INJECT_STRING = b"I'm Attacker"
- length_extension_sha256/length_extension_sha256.py
EXPECTED_KEY_LEN = 32 ORIGIN_STRING = b"This Is An Original Data" INJECT_STRING = "I'm Attacker"