The due date is 11:30 a.m. on Friday, March 19.
Hand in items using submit
unless the problem says otherwise.
1. A more complete password suite
In computing, a suite means a set of interconnected entities
that work together, just as a hotel suite is a set of
interconnected rooms. For example, a ``software suite'' means a
package such as Microsoft Office that has a number of related
programs in it, working together. We could talk about a ``suite''
of interrelated web pages and CGI scripts to perform some
function.
Improve your password page and CGI script by extending it to
become a suite of pages and CGI scripts to do the following.
Assume that you have first made an empty file user_data
with an editor.
http://www.the-times.co.uk
, where
the entrance page asks first-time visitors to register via an
anchor link and for previously registered visitors also provides
boxes for an ID and password. The page warns the visitor that
these are case-sensitive.
Location:
...with an actual HTML file.
">>user_info"
),
print to it a line with the visitor data and encrypted password
(all separated by colons), and close the file.
2. Numbers
(Not to hand in.)
Consider a ``toy'' Diffie-Hellman example with p = 11, g=2 (agreed on publicly by Alice and Bob). If Alice chooses private code x sub A = 9 and Bob chooses private code x sub B = 4, what are their public codes and what is their secret key?
3. XML
(a) Write a Perl script that reads the file h/rosterx
and prints out the information in XML format, where each record
has the form
<student>
<SID> ... </SID>
<name> ... </name>
<email> ... </email>
<major> ... </major>
</student>
If a field is blank, leave it blank.
(b) Write a Perl script that reads this format and puts it back
in the form of h/rosterx
. Your program should not rely on the
newlines in the file, but just the tags. Some ideas will be given
in discussion Tuesday.
4. Other
There will be one more easy task assigned.