next up previous
Next: About this document Up: No Title Previous: No Title

Lab Assignment #8

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 roomsgif. 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.

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.


next up previous
Next: About this document Up: No Title Previous: No Title

Kirby A. Baker
Mon Mar 15 17:12:42 PST 1999