UQ Students should read the Disclaimer & Warning

Note: This page dates from 2005, and is kept for historical purposes.

COMP2301 – Assignment Two – File I/O in C

This assignment is a pass/fail assignment. I achieved a pass.

The goal of this assignment is to write C code to perform a simple file encryption and decryption.

The solution must have the following features / functions:




The most complex part of this assignment, for me, was the creation of the key. I ended up using the technique below:

Skip to the code.

Key Creation



Code © Copyright 2004 Ned Martin