Ah, so "(a, 26) = 1" simply states what I had already figured out, that
there must be no common factors between them.  (Not counting 1 itself, of
course.)  I think I read once that another way of saying that is "<a> and
26 are mutually prime".  Thanks, Horacio.

I'm thinking that in one sense there are actually an infinite number of
values that will work for <a>, but once you get to 26 and past they're
simply repeating previous values.  For instance, if you use 3 (and I'll
pretend b=0 just for simplicity here) then the ciphertext numbers are 3, 6,
9, 12, 15, 18, 21, 24, 1, 4, 7, 10, 13, 16, 19, 22, 25, 2, 5, 8, 11, 14,
17, 20, 23, 26.  I could also use a=29, 55, 81 and so on, but the
ciphertext sequence is identical so there's no point.

---
Bob Bridges, robhbrid...@gmail.com, cell 336 382-7313

/* Things work out best for those who make the best of the way things work
out. */

-----Original Message-----
From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> On Behalf Of
Horacio Luis Villa
Sent: Tuesday, August 23, 2022 17:01

(m,n) is the great common divisor between m and n.
Can't tell what phi(26)=12 is, but I would say is something like "there are
12 coprimes among the 26 first natural numbers".

________________________________
De: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> en nombre de
Bob Bridges <robhbrid...@gmail.com>
Enviado: martes, 23 de agosto de 2022 17:50

I got to talking with a church friend about encryption, and at lunch
yesterday he lent me a book on number theory that has a chapter on
asymmetric encryption.  Cryptography has long been a hobby of mine, but
it's only recently that I came to understand a little of how asymmetric
encryption can work.

The chapter I'm perusing will get into asymmetric encryption eventually,
but it's starting with simple rotational ciphers.  Expanding on the simple
rotation, it then talks about something it calls "affine transformations",
which introduce an additional term into the formula used to encrypt or
decrypt the text:

  C ≡ <a>P+<b> (mod 26)     0 ≤ C ≤ 25

...where, it specifies, "(a, 26) = 1".  Here's where I pause:  What
operation is indicated by "(m, n)"?

It goes on to say that for 26 letters in the cipher, "there are ф(26) = 12
choices for <a>".  I can see that <a> and 26 must have no factors in common
for this to work, and without actually working out how many choices there
are I can easily believe the answer is 12, but what function is implied by
phi?

Someone here probably knows, wouldn't you think?

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to