Does Moodle encrypt Assignment submission files when storing them in the Moodle folder?

Does Moodle encrypt Assignment submission files when storing them in the Moodle folder?

by Zhivko Z -
Number of replies: 1

Hello,

Does Moodle encrypt Assignment submission files when storing them in the Moodle folder?

Thanks


Moodle 3.1.2

Average of ratings: -
In reply to Zhivko Z

Re: Does Moodle encrypt Assignment submission files when storing them in the Moodle folder?

by Mark Sharp -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

No it doesn't, though it does rename the file using a hash of the contents for the new name and path. This is used to ensure there are no duplicate files in Moodle.

You can find the file via the mdl_files table, and taking the contenthash field. The first 4 digit form part of the path to the file.

So the content hash: 2042c1f4f46e7946084f783b82e7eb278fea9ebd would be found in:

/moodledata/filedir/20/42/2042c1f4f46e7946084f783b82e7eb278fea9ebd

Note: there's no extension on the file.

Are you looking to retrieve a file?