This is a command line program that is executed by running setup
. It initializes a new gradebook with the specified name, generates and outputs
a cryptographic key to stdout.
**IMPORTANT: Correct implementation of setup
requires generating and using randomness properly for cyprographic applications.
Please see here for more information on how to do this.**
There is only a single allowed option -N that specifies the name of the generated gradebook.
-N
The name of the gradebook file. The filename may be specified with a string of alphanumeric characters (including underscores and periods). The gradebook file will be generated in the same directory in which
setup
is run. If a file of this name already exists, an error occurs. Specifically,
setup
should print "invalid," and
exit with error code 255.
Example Usage:
setup -N mygradebook