This repository was archived by the owner on Jan 27, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tex
239 lines (174 loc) · 6.58 KB
/
main.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
\documentclass[a4paper, 12pt]{article}
\usepackage[danish]{babel} % Language
\usepackage[utf8]{inputenc} % Encoding
\usepackage[T1]{fontenc} % accents
\usepackage{graphicx} % Graphics
\usepackage{minted} % Code inclusion
\usepackage{amsfonts} % Other letters/signs
\usepackage{lastpage} % Pagenumbering
\usepackage{fancyhdr} % Custom header/footer
\usepackage{amsthm} % Proofs
\usepackage{amssymb} % nmid
% \usepackage{amssymb} % Black square
\usepackage{amsmath} % Align
\usepackage{mdframed} % Boxing lemmas and such
\usepackage{xhfill} % h line after env
\usepackage{changepage} % for the adjustwidth environment
\usepackage{multirow} % Multiple rows in tabular
\usepackage{enumitem} % space between items in list
% \usepackage{svg} % svg img
\usepackage[page, titletoc]{appendix} % appendicies
\usepackage{wrapfig} % small figure
\usepackage[pdftitle={Studieområdeprojekt 2019},pdfauthor={Jens Tinggaard}, hidelinks, bookmarks=true]{hyperref} %References
\usepackage{cleveref} % referencing list
\usepackage[margin=1in]{geometry} %Margins
\usepackage{attachfile} % Attach files in sources
% Biblografi
\usepackage{csquotes}
\usepackage[style=numeric, style=alphabetic]{biblatex} %style=numeric
\addbibresource{biblography.bib}
\DeclareNameAlias{default}{family-given}
\emergencystretch=1em % hbox not too wide
\pagestyle{fancy} % Set custom page layout
\fancyhf{}% to clear existing header/footer
% Set line on header and footer width
\renewcommand{\headrulewidth}{2pt}
\renewcommand{\footrulewidth}{1pt}
\addto\captionsdanish{\renewcommand\appendixname{Appendiks}} % appekdiks in toc
\renewcommand{\appendixpagename}{Appendiks} %appekdiks in page
\definecolor{bg}{rgb}{0.95,0.95,0.95} % Baggrund af kode.
\attachfilesetup{ % Setup af attachfile pakken.
author={Jens Tinggaard},
color={1 0 0},
icon={Paperclip}
}
% \renewcommand\qedsymbol{$\blacksquare$} % Black QED
\newcommand{\Mod}[1]{\ (\mathrm{mod}\ #1)} % mod command no space
\newcommand{\xfill}[2][1ex]{{%
\dimen0=#2\advance\dimen0 by #1
\leaders\hrule height \dimen0 depth -#1\hfill%
}}
\newtheoremstyle{breakline}% name
{0.5cm plus 1 pt minus 2 pt}% Space above, empty = `usual value'
{0.5cm plus 1 pt minus 2 pt}% Space below
{}% Body font
{}% Indent amount (empty = no indent, \parindent = para indent)
{\bfseries}% Thm head font
{\mbox{}\hspace{0.5cm}\xfill{0.4pt}\vspace{0.3cm}}%Punctuation after thm head
{0pt}% Space after thm head: \newline = linebreak
{}% Thm head spec
\newtheoremstyle{break}% name
{0.5cm plus 1 pt minus 2 pt}% Space above, empty = `usual value'
{0.5cm plus 1 pt minus 2 pt}% Space below
{}% Body font
{}% Indent amount (empty = no indent, \parindent = para indent)
{\bfseries}% Thm head font
{\vspace{0.3cm}}% Punctuation after thm head
{\newline}% Space after thm head: \newline = linebreak
{}% Thm head spec
% \newtheoremstyle{nobreak}% name
% {0.5cm plus 1 pt minus 2 pt}% Space above, empty = `usual value'
% {0.5cm plus 1 pt minus 2 pt}% Space below
% {}% Body font
% {}% Indent amount (empty = no indent, \parindent = para indent)
% {\bfseries}% Thm head font
% {\vspace{0.3cm}}% Punctuation after thm head
% {0pt}% Space after thm head: \newline = linebreak
% {}% Thm head spec
%
% Definitions kommando 'definition'
\mdtheorem{definition}{Definition}%[section]
% Eksempel kommando 'eks'
\theoremstyle{break}
\newtheorem{eks}{Eksempel}[section]
% % Eksempel kommando 'eks'
% \theoremstyle{nobreak}
% \newtheorem{prot}{Protokol}
% Sætning kommando 'sent'
\theoremstyle{breakline}
\newtheorem{sentence}[eks]{Sætning}
\newenvironment{sent}
{\begin{sentence}\mbox{}\begin{adjustwidth}{1em}{1em}}
{\end{adjustwidth}\par\noindent\hrulefill\end{sentence}}
% Headers and footers
\lhead{Jens Tinggaard 3.E\\ Odense Tekniske Gymnasium}
\rhead{Vejledere: LEER \& SSE\\ 20. december 2019}
% \lfoot{\rightmark} % Subsection
\lfoot{\leftmark} % SECTION
\rfoot{Side \thepage\ af \pageref{LastPage}}
% Navn på indholdsfortegnelse
\addto\captionsdanish{\renewcommand*\contentsname{Indholdsfortegnelse}}
% Basic info
\date{20. december 2019}
\title{Sikkerhed bag login-formular på en hjemmeside}
\author{Jens Tinggaard}
% \svgpath{C:/Users/Jens/projects/SOP/img/svg}
\setlength{\parindent}{0em} % Identeringsstørrelse = 0
% \setlength{\parskip}{1em} % Paragraf afstand
% Bruges med \par
\numberwithin{equation}{section}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\thispagestyle{empty}
% {
% \large
% \textbf{Fag:}
% Matematik A og Programmering B
%
% % \textbf{Navn:}
% }
%
%
% \vspace{1cm}
\begin{center}
\LARGE
\textbf{Opgaveformulering}
\end{center}
{
\large
\begin{itemize}
\item Redegør for talteorien bag RSA kryptering. Forklar nødvendigheden af primtal og hvordan RSA metoden fungerer.
\item Gør kort rede for hashing.
\item Analyser forskellen på hashing og kryptografi og hvilken rolle de har i forhold til sikkerhed.
\item Vurder hvorfor RSA er vigtigt i forbindelse med sikkerhed ved logins.
\end{itemize}
}
% \newpage
\input{sections/forside.tex}
% \newpage
\tableofcontents
% \listoffigures
% \listoftables
\newpage
\section*{Indledning / Motivation}
\addcontentsline{toc}{section}{Indledning / Motivation}
\input{sections/forord.tex}
\newpage
\section{Talteori}\label{sec:numtheory}
\input{sections/talteori.tex}
\newpage
\section{Hashing}
\input{sections/hashing.tex}
\newpage
\section{Forskel på hashing og kryptografi}
\input{sections/forskel.tex}
\newpage
\section{Hvorfor RSA er vigtig}
\input{sections/rsa.tex}
\newpage
\section*{Konklusion}
\addcontentsline{toc}{section}{Konklusion}
\input{sections/konklusion.tex}
\newpage
\setlength\bibitemsep{10pt}
\printbibliography[
heading=bibintoc, %Er med i indholdsfortegnelsen
title={Litteratur} %Titel
]
\newpage
\begin{appendices}
\input{sections/appendiks.tex}
\end{appendices}
\end{document}