cryptopals

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

commit 658e3481f1cb086cf5732732835eb7bd3a82071a
parent 46f2d288b414650c6fb0e41bc95f342166569850
Author: mpizzzle <michael.770211@gmail.com>
Date:   Sat,  7 Oct 2017 19:55:33 +0100

set 2 challenge 9 complete

Diffstat:
Aset2/pkcs7_padding.py | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/set2/pkcs7_padding.py b/set2/pkcs7_padding.py @@ -0,0 +1,6 @@ +def pkcs7_padding(block, block_length): + return block + ''.join([chr(4) for x in range(block_length - len(block))]) + +block = "YELLOW SUBMARINE" + +print pkcs7_padding(block, 32)