diff -r 8e5e84b14041 -r 619073c37649 handouts/ho01.tex --- a/handouts/ho01.tex Wed Dec 17 17:50:34 2014 +0000 +++ b/handouts/ho01.tex Thu Dec 18 12:00:44 2014 +0000 @@ -183,21 +183,22 @@ \subsection*{Of Cookies and Salts} -Let us look at another example which will help with -understanding how passwords should be verified and stored. -Imagine you need to develop a web-application that has the -feature of recording how many times a customer visits a page. -For example in order to give a discount whenever the customer -has visited a webpage some $x$ number of times (say $x$ equal -$5$). There is one more constraint: we want to store the -information about the number of visits as a cookie on the -browser. I think, for a number of years the webpage of the New -York Times operated in this way: it allowed you to read ten -articles per month for free; if you wanted to read more, you -had to pay. My best guess is that it used cookies for -recording how many times their pages was visited, because if I -switched browsers I could easily circumvent the restriction -about ten articles. +Let us look at another example which will help with understanding how +passwords should be verified and stored. Imagine you need to develop +a web-application that has the feature of recording how many times a +customer visits a page. For example in order to give a discount +whenever the customer has visited a webpage some $x$ number of times +(say $x$ equal $5$). There is one more constraint: we want to store +the information about the number of visits as a cookie on the +browser. I think, for a number of years the webpage of the New York +Times operated in this way: it allowed you to read ten articles per +month for free; if you wanted to read more, you had to pay. My best +guess is that it used cookies for recording how many times their pages +was visited, because if I switched browsers I could easily circumvent +the restriction about ten articles.\footnote{Another online media that + works in this way is the Times Higher Education + \url{http://www.timeshighereducation.co.uk}. It also uses cookies to +restrict the number of free articles to five.} To implement our web-application it is good to look under the hood what happens when a webpage is displayed in a browser. A