cryptopals

Matasano's cryptopals challenges (cryptopals.com).
Log | Files | Refs | README | LICENSE

commit daa64a220b5597935d2bacf48e839fc46618cf64
parent 158c922afe7b6d1d73d5eec7c165fff80948b59b
Author: Jared Tobin <jared@jtobin.ca>
Date:   Mon, 28 Aug 2017 21:28:34 +1200

Updates.

Diffstat:
Mdocs/s1.md | 21+++++++++++----------
1 file changed, 11 insertions(+), 10 deletions(-)

diff --git a/docs/s1.md b/docs/s1.md @@ -149,7 +149,7 @@ I like openssl, heck the rules: I'm back and I'm ringin' the bell A rockin' on the mike while the fly girls yell -Alternatively: +Alternatively, with code: $ cat data/s1/q7_input.txt | tr -d '\n' | ./bin/aes_ecb \ --key "YELLOW SUBMARINE" | head -2 @@ -158,16 +158,17 @@ Alternatively: #### 1.8 - $ cat data/s1/q8_input.txt | parallel \ - 'echo -n {} | ./bin/chunks 8 | printf "%.10s %u\n" {} \ - $(datamash countunique 1)' | awk '{ if ($2 < 20) { print }; }' - d880619740 14 - -So, the line starting with 'd880619740' - line 133. - -**Background**: - ECB means electronic codebook, the simplest block cipher encryption mode. One divides a message into 16-byte chunks and then encrypts each chunk separately. The same 16 bytes will thus encrypt to the same output. + $ cat data/s1/q8_input.txt | parallel \ + 'echo -n {} | ./bin/chunks 8 | \ + printf "%s %u\n" {} $(datamash countunique 1)' | \ + awk '{ if ($2 < 20) { print $1 }; }' | fold -w 64 + d880619740a8a19b7840a8a31c810a3d08649af70dc06f4fd5d2d69c744cd283 + e2dd052f6b641dbf9d11b0348542bb5708649af70dc06f4fd5d2d69c744cd283 + 9475c9dfdbc1d46597949d9c7e82bf5a08649af70dc06f4fd5d2d69c744cd283 + 97a93eab8d6aecd566489154789a6b0308649af70dc06f4fd5d2d69c744cd283 + d403180c98c8f6db1f2a3f9c4040deb0ab51b29933f2c123c58386b06fba186a +