From 17dece8dafad1693b02fc0eedea10ee45aad672d Mon Sep 17 00:00:00 2001 From: Leon Etienne Date: Sun, 22 May 2022 20:55:04 +0200 Subject: [PATCH] Put images in readme next to each other --- readme.md | 32 +++++++++++--------------------- 1 file changed, 11 insertions(+), 21 deletions(-) diff --git a/readme.md b/readme.md index ca84f5f..ed47e68 100644 --- a/readme.md +++ b/readme.md @@ -128,41 +128,31 @@ The xor operation ensures that an observer will never know the internal state of future output. ### Speaking of... Visualizations! -
- -`"Hello :3"` in binary: +`"Hello :3"` in binary, and it's ciphertext: + !["Hello :3" in binary](https://gitea.leonetienne.de/leonetienne/GCrypt/raw/branch/feature/relaunch/GCryptLib/visualizations/input.bmp.png) - - - -It's ciphertext: +    ![Ciphertext 1](https://gitea.leonetienne.de/leonetienne/GCrypt/raw/branch/feature/relaunch/GCryptLib/visualizations/output.bmp.png) - -
-Now, let's flip a single bit in the input: -One bit flipped: +Now, let's flip a single bit in the input: + +One bit flipped, and again the corresponding ciphertext: ![One bit flipped](https://gitea.leonetienne.de/leonetienne/GCrypt/raw/branch/feature/relaunch/GCryptLib/visualizations/input-flip.bmp.png) - -It's ciphertext: +    ![Ciphertext for flipped bit](https://gitea.leonetienne.de/leonetienne/GCrypt/raw/branch/feature/relaunch/GCryptLib/visualizations/output-flip.bmp.png) -Let's gif them together, to better see the difference... - -Input: +Let's gif them together, to better see the difference: ![Input](https://gitea.leonetienne.de/leonetienne/GCrypt/raw/branch/feature/relaunch/GCryptLib/visualizations/input.gif) - -Ciphertext: +    ![Ciphertext](https://gitea.leonetienne.de/leonetienne/GCrypt/raw/branch/feature/relaunch/GCryptLib/visualizations/output.gif) What about input longer a single block? -Input: +Input, and ciphertext: ![Input](https://gitea.leonetienne.de/leonetienne/GCrypt/raw/branch/feature/relaunch/GCryptLib/visualizations/input-big.gif) - -Ciphertext: +    ![Ciphertext](https://gitea.leonetienne.de/leonetienne/GCrypt/raw/branch/feature/relaunch/GCryptLib/visualizations/output-big.gif) Notice how the ciphertext doesn't change until the block containing the bitflip is reached. This is a limitation of cipher block chaining.