|
|
1 | ################################################################################ |
|
|
2 | # WeBWorK mod_perl (c) 1995-2002 WeBWorK Team, Univeristy of Rochester |
|
|
3 | # $Id$ |
|
|
4 | ################################################################################ |
|
|
5 | |
|
|
6 | package WeBWorK::Upload; |
|
|
7 | |
|
|
8 | =head1 NAME |
|
|
9 | |
|
|
10 | WeBWorK::Upload - everything we need to be confident about an upload. |
|
|
11 | |
|
|
12 | =cut |
|
|
13 | |
|
|
14 | use Data::UUID; |
|
|
15 | use MD5 qw(); |
|
|
16 | use WeBWorK::Constants qw(SECRET); |
|
|
17 | |
| 1 | # This package allows a file to be reliably cached on disk and replaced with |
18 | # This package allows a file to be reliably cached on disk and replaced with |
| 2 | # a string that universally and unforgeably represents that file, and then |
19 | # a string that universally and unforgeably represents that file, and then |
| 3 | # retrieved later given that string. |
20 | # retrieved later given that string. |
| 4 | |
|
|
| 5 | package WeBWorK::SecureUpload; |
|
|
| 6 | |
|
|
| 7 | # Everything we need to be confident about the upload |
|
|
| 8 | use WeBWorK::Constants qw(SECRET); |
|
|
| 9 | use MD5 (); |
|
|
| 10 | use Data::UUID; |
|
|
| 11 | |
|
|
| 12 | |
21 | |
| 13 | sub store_upload {} |
22 | sub store_upload {} |
| 14 | |
23 | |
| 15 | sub retrieve_upload {} |
24 | sub retrieve_upload {} |
| 16 | |
25 | |