Source: https://lipn.univ-paris13.fr/~poinsot/save/INFO 3/TD/TD Chiffrement affine.pdf