finished part 2
This commit is contained in:
parent
17712acc19
commit
58f99634dc
5 changed files with 49 additions and 0 deletions
BIN
Lab04/documentation/images/part2/decrypted.png
Normal file
BIN
Lab04/documentation/images/part2/decrypted.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 17 KiB |
BIN
Lab04/documentation/images/part2/encrypted.png
Normal file
BIN
Lab04/documentation/images/part2/encrypted.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 17 KiB |
BIN
Lab04/documentation/images/part2/import.png
Normal file
BIN
Lab04/documentation/images/part2/import.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 36 KiB |
|
@ -110,6 +110,7 @@
|
|||
\newpage
|
||||
\listoffigures
|
||||
\include{part1/part1}
|
||||
\include{part2/part2}
|
||||
|
||||
\printbibliography[title=Literaturverzeichnis]
|
||||
|
||||
|
|
48
Lab04/documentation/part2/part2.tex
Normal file
48
Lab04/documentation/part2/part2.tex
Normal file
|
@ -0,0 +1,48 @@
|
|||
\section{Part 2: Transposition Cipher}
|
||||
|
||||
\subsection{Block Länge}
|
||||
|
||||
Der verschlüsselte Text hat 924 Zeichen. Da die Block Länge eine Zahl sein muss, durch die der Text teilbar ist, kommen nur 6 oder 7 in Frage. 6 wird in der Aufgabenstellung ausgeschlossen. Der Text kann deshalb in 7er Blöcke geteilt werden:
|
||||
|
||||
\begin{verbatim}
|
||||
echo HETNGEIAMMCIAHEINAESNCRNPIYT... | fold -w 7 > split.txt
|
||||
\end{verbatim}
|
||||
|
||||
Die resultierende ``split.txt'' datei kann in Excel importiert werden.
|
||||
|
||||
\begin{figure}[H]
|
||||
\begin{center}
|
||||
\includegraphics[width=0.6\textwidth]{part2/import}
|
||||
\caption{Import in Excel}
|
||||
\label{fig:Import in Excel}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
|
||||
Die importierten Daten machen keinen Sinn (Abb. \ref{fig:Verschlüsselt (30 Zeilen)}). In der letzten Zeile sind aber 5x``X'' zu erkennen. Diese sind am Ende des Textes und daher kann die Zeile mit ``T'' am Anfang nach vorne geschoben werden. Danach kann man mit ``THE'' und erkennen von ``CRYPT'' die restlichen Spalten verschieben (Abb. \ref{fig:Entschlüsselt (30 Zeilen)}).
|
||||
|
||||
\subsection{Key}
|
||||
|
||||
Der Key lautet deshalb: \verb|(3,1,2,6,4,7,5)|
|
||||
|
||||
\subsection{Result}
|
||||
|
||||
Somit ergibt sich folgender Text (Ausschnitt):
|
||||
|
||||
The enigma machine is an encryption device developed and used to protect commercial diplomatic and military communication. It was employed extensively by Nazigermany
|
||||
during the second world war in all branches of the German military. Enigma has ...
|
||||
|
||||
\begin{figure}[H]
|
||||
\begin{center}
|
||||
\includegraphics[width=0.15\textwidth]{part2/encrypted}
|
||||
\caption{Verschlüsselt (30 Zeilen)}
|
||||
\label{fig:Verschlüsselt (30 Zeilen)}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
|
||||
\begin{figure}[H]
|
||||
\begin{center}
|
||||
\includegraphics[width=0.15\textwidth]{part2/decrypted}
|
||||
\caption{Entschlüsselt (30 Zeilen)}
|
||||
\label{fig:Entschlüsselt (30 Zeilen)}
|
||||
\end{center}
|
||||
\end{figure}
|
Reference in a new issue