How about this: you ask every student to send you a password word. You hash these passwords, give them the algorithm and send them a list with the hashes with the grades.
if my university were paying attention they would complain that sending me the passwords would be insecure... but I suppose each student could hand me a piece of paper