hw02.tex
author Christian Urban <urbanc@in.tum.de>
Tue, 02 Oct 2012 06:44:00 +0100
changeset 17 ba6999806dee
parent 16 d627d9bc15c8
child 19 3a15c73d51e2
permissions -rw-r--r--
tuned
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
16
d627d9bc15c8 new slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     1
\documentclass{article}
d627d9bc15c8 new slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     2
\usepackage{charter}
d627d9bc15c8 new slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     3
\usepackage{hyperref}
d627d9bc15c8 new slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     4
d627d9bc15c8 new slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     5
\begin{document}
d627d9bc15c8 new slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     6
d627d9bc15c8 new slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     7
\section*{Homework 1}
d627d9bc15c8 new slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     8
d627d9bc15c8 new slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     9
\begin{enumerate}
d627d9bc15c8 new slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    10
\item {\bf (Optional)} If you want to have a look at the code presented in the lectures, install Scala available (for free) from
d627d9bc15c8 new slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    11
\begin{center}
d627d9bc15c8 new slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    12
\url{http://www.scala-lang.org}
d627d9bc15c8 new slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    13
\end{center}
d627d9bc15c8 new slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    14
d627d9bc15c8 new slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    15
\noindent
d627d9bc15c8 new slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    16
The web-applications from the first lecture are written in Scala using the Play Framework available (also for free) from
d627d9bc15c8 new slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    17
\begin{center}
d627d9bc15c8 new slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    18
\url{http://www.playframework.org}
d627d9bc15c8 new slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    19
\end{center}
d627d9bc15c8 new slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    20
d627d9bc15c8 new slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    21
\item Practice thinking like an attacker. Assume the following situation:
d627d9bc15c8 new slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    22
\begin{quote}\it
d627d9bc15c8 new slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    23
Prof.~V.~Nasty gives the following final exam question (closed books, closed notes):\bigskip
d627d9bc15c8 new slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    24
d627d9bc15c8 new slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    25
\noindent
d627d9bc15c8 new slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    26
\begin{tabular}{@ {}l}
d627d9bc15c8 new slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    27
Write the first 100 digits of pi:\\
d627d9bc15c8 new slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    28
3.\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_
d627d9bc15c8 new slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    29
\end{tabular}
d627d9bc15c8 new slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    30
\end{quote}
d627d9bc15c8 new slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    31
d627d9bc15c8 new slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    32
\noindent
d627d9bc15c8 new slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    33
Think of ways how you can cheat in this exam?
d627d9bc15c8 new slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    34
d627d9bc15c8 new slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    35
\item Explain what hashes and salts are. Describe how they can be used for ensuring data integrity and
d627d9bc15c8 new slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    36
storing password information.
d627d9bc15c8 new slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    37
d627d9bc15c8 new slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    38
\item What are good uses of cookies (that is browser cookies)?
d627d9bc15c8 new slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    39
d627d9bc15c8 new slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    40
\end{enumerate}
d627d9bc15c8 new slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    41
d627d9bc15c8 new slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    42
\end{document}
d627d9bc15c8 new slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    43
d627d9bc15c8 new slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    44
%%% Local Variables: 
d627d9bc15c8 new slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    45
%%% mode: latex
d627d9bc15c8 new slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    46
%%% TeX-master: t
d627d9bc15c8 new slides
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    47
%%% End: