Skip to content

Commit ceda912

Browse files
committed
fixed readme typo
1 parent 5fc4f43 commit ceda912

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ def oracle(ciphertext: bytes):
8585
raise RuntimeError('unexpected behavior')
8686

8787
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)])
88+
pad_value = block_size - len(data) % block_size
89+
return data + bytearray([pad_value for i in range(pad_value)])
9090

9191
payload: bytes =b"{'username':'admin'}"
9292
payload = pad(payload)

0 commit comments

Comments
 (0)