cryptopals

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 4a233b969ad61659fca447ee1578beefc22c7d4e
parent 2962426c6a60462489cfcfd9b52d021ad02c664d
Author: mpizzzle <michael.770211@gmail.com>
Date:   Tue, 31 Oct 2017 20:13:04 +0000

finally solved it ;_;

Diffstat:
Mset3/cbc_padding_oracle.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/set3/cbc_padding_oracle.py b/set3/cbc_padding_oracle.py @@ -39,7 +39,7 @@ for b_idx in reversed(range((len(ciphertext) / AES.block_size) - 1)): guessed_byte = block[AES.block_size - i - 1] found = False - for c in range(0xff): + for c in range(0xff + 1): if chr(c) != guessed_byte: block[AES.block_size - i - 1] = chr(c) blocks[b_idx] = ''.join(block)