Cryptography I course - homework week 3