Im going to make a C++ program about Affine Cipher but i also want to encode the strings with numbers in it. I know for alphabet the formula is:
TO ENCODE: X=(a*x)+b mod 26
TO DECODE: Y=Z*(y-b) mod 26 "Z is the inverse of a"
But how can i imply this formula for numbers? I tried to Google it but i couldnt find anything about it.
NOTE:Excuse my grammar mistakes.