add function (encrypt the exam file)