How to implement affine cipher?

How to implement affine cipher?
0

#1

affine cipher in cryptology
multiplicative cipher