We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fc4f43 commit ceda912Copy full SHA for ceda912
README.md
@@ -85,8 +85,8 @@ def oracle(ciphertext: bytes):
85
raise RuntimeError('unexpected behavior')
86
87
def pad(data: bytes, block_size=16):
88
- pad_value = block_size - len(data) % block_size
89
- return text + bytearray([pad_value for i in range(pad_value)])
+ pad_value = block_size - len(data) % block_size
+ return data + bytearray([pad_value for i in range(pad_value)])
90
91
payload: bytes =b"{'username':'admin'}"
92
payload = pad(payload)
0 commit comments