Welcome to Atheist Discussion, a new community created by former members of The Thinking Atheist forum.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What Did You Learn Today 2.0
#26

What Did You Learn Today 2.0
(07-13-2019, 01:56 AM)Kernel Sohcahtoa Wrote: I've recently become interested in understanding the theory underlying RSA encryption/decryption.  As a result, I learned about RSA via one of my books on number theory.  I enjoyed learning about the derivation of the decryption scheme from the encryption scheme, as it made use of Euler's theorem and multiple congruence properties to achieve the desired derivation.  There was also a second case of the derivation, which required one to make use of the fact that if a, b, and c are integers with gcd (a,b)=1 and a divides c and b divides c, then ab divides c; I've made use of this fact countless times when doing proofs in number theory.  

I actually started my exploration of Cryptography via the Caesar Cipher, since my number theory text started with it.  Basically, each letter in the alphabet is converted into an equivalent two digit number. The letter to numbers table goes as follows: 

A=00;  B=01; C=02; D=03; E=04; F=05; G=06; H=07; I=08

J=09; K=10; L=11; M=12; N=13; O=14; P=15; Q=16; R=17

S=18; T=19; U=20; V=21; W=22; X=23; Y=24; Z=25

We use the Caesar cipher as follows: suppose that we want to encrypt the plain text word "Yogi". 

Encryption

1) We convert each letter of the word to its two digit number: Y=25, O=14, G=06, I=08, so our message is expressed numerically as 25 14 06 08 (the spaces are for convenience). 

2) We then add 3 to each individual two digit number: 25+3=28, 14+3=17, 06+3=09, 08+3=11, so the encrypted message is now 28 17 09 11.  Now, if we obtain a number that is greater than 25, then subtract 26 from it and this will produce the desired encrypted number.  Thus, 28 – 26=02.  We now substitute 02 for 28 and the encrypted message is 02 17 09 11.  Converting this to letters gives the encrypted text CRJL.

Decryption

1) To decrypt the word CRJL, we convert each letter to its two digit number: C=02, R=17, J=09, L=11, so our message is expressed numerically as 02 17 09 11.  

2) We then subtract 3 from each individual two digit number: 02 – 3= 1, 17 – 3=14, 09 – 3=06, 11 3=08, so the decrypted message is 
1 14 06 08.  Now, if we obtain a number that is less than 0, then add 26 to it and that will produce the desired decrypted number.  Thus, 1+26=25. We now substitute  25 for 1 and the decrypted message is 25 14 06 08. Converting this to letters gives YOGI.

For anyone who is interested in practicing, here are some words that can be decrypted using the method described above:

(1) IUHHGRP

Show ContentSpoiler:

(2) CDQB

Show ContentSpoiler:

P.S. In math-speak, the actual representation for the encryption scheme is P+3≡C (mod 26) where P is the two digit plain text number and C is the two digit encrypted number.  The decryption scheme is represented as C – 3≡P (mod 26).

Dodgy  Hmm. I didn't realize there was going to be math in here today. Just poking at you, Kernel.  Big Grin I'm currently reading "The Golden Ratio", by Mario Livio. it's quite interesting. I used to do all kinds of substitution ciphers with friends as a kid. Letters and numbers both.
If you get to thinking you’re a person of some influence, try ordering somebody else’s dog around.
The following 2 users Like Fireball's post:
  • Kernel Sohcahtoa, mordant
Reply


Messages In This Thread
What Did You Learn Today 2.0 - by Vera - 10-08-2018, 05:14 PM
Re: What Did You Learn Today 2.0 - by M.Linoge - 10-10-2018, 01:54 AM
Re: What Did You Learn Today 2.0 - by Chas - 10-10-2018, 03:09 AM
RE: What Did You Learn Today 2.0 - by Vera - 11-13-2018, 04:45 PM
RE: What Did You Learn Today 2.0 - by leerob - 11-19-2018, 05:23 AM
RE: What Did You Learn Today 2.0 - by Vera - 11-27-2018, 09:57 PM
RE: What Did You Learn Today 2.0 - by julep - 11-28-2018, 02:37 AM
RE: What Did You Learn Today 2.0 - by Vera - 12-27-2018, 09:54 PM
RE: What Did You Learn Today 2.0 - by Vera - 03-01-2019, 11:12 PM
RE: What Did You Learn Today 2.0 - by SYZ - 03-01-2019, 11:31 PM
RE: What Did You Learn Today 2.0 - by SYZ - 03-02-2019, 07:00 AM
RE: What Did You Learn Today 2.0 - by Vera - 03-05-2019, 03:12 PM
RE: What Did You Learn Today 2.0 - by Vera - 03-06-2019, 01:02 AM
RE: What Did You Learn Today 2.0 - by SYZ - 03-06-2019, 03:19 PM
RE: What Did You Learn Today 2.0 - by Vera - 07-11-2019, 06:19 PM
RE: What Did You Learn Today 2.0 - by no one - 07-11-2019, 06:54 PM
RE: What Did You Learn Today 2.0 - by Alan V - 07-11-2019, 08:13 PM
RE: What Did You Learn Today 2.0 - by Gwaithmir - 07-12-2019, 01:22 AM
RE: What Did You Learn Today 2.0 - by Fireball - 07-13-2019, 03:47 AM
RE: What Did You Learn Today 2.0 - by mordant - 07-27-2019, 08:37 PM
RE: What Did You Learn Today 2.0 - by Fireball - 07-27-2019, 08:43 PM
RE: What Did You Learn Today 2.0 - by Alan V - 07-28-2019, 10:07 PM
RE: What Did You Learn Today 2.0 - by Red Belt - 07-29-2019, 05:27 AM
RE: What Did You Learn Today 2.0 - by Vera - 08-28-2019, 02:35 PM
RE: What Did You Learn Today 2.0 - by Vera - 09-05-2019, 09:22 AM
RE: What Did You Learn Today 2.0 - by Fireball - 09-05-2019, 01:43 PM
RE: What Did You Learn Today 2.0 - by grympy - 09-06-2019, 12:08 AM
RE: What Did You Learn Today 2.0 - by skyking - 09-26-2019, 03:55 AM
RE: What Did You Learn Today 2.0 - by Dānu - 09-26-2019, 05:28 AM
RE: What Did You Learn Today 2.0 - by Gwaithmir - 09-27-2019, 02:02 AM
RE: What Did You Learn Today 2.0 - by Chas - 09-27-2019, 04:59 AM
RE: What Did You Learn Today 2.0 - by Vera - 04-17-2020, 05:50 PM
RE: What Did You Learn Today 2.0 - by Vera - 05-29-2020, 06:23 PM
RE: What Did You Learn Today 2.0 - by Vera - 06-01-2020, 08:49 PM
RE: What Did You Learn Today 2.0 - by Dānu - 06-09-2020, 07:05 PM
RE: What Did You Learn Today 2.0 - by Fireball - 06-09-2020, 08:35 PM
RE: What Did You Learn Today 2.0 - by Vera - 06-10-2020, 05:02 PM
RE: What Did You Learn Today 2.0 - by Dānu - 06-10-2020, 05:13 PM
RE: What Did You Learn Today 2.0 - by Vera - 06-11-2020, 11:19 AM
RE: What Did You Learn Today 2.0 - by leerob - 06-12-2020, 10:47 PM
RE: What Did You Learn Today 2.0 - by Vera - 06-27-2020, 05:58 PM
RE: What Did You Learn Today 2.0 - by Vera - 11-16-2020, 05:12 PM
RE: What Did You Learn Today 2.0 - by Vera - 11-18-2020, 01:16 PM
RE: What Did You Learn Today 2.0 - by TonyAnkle - 11-18-2020, 08:27 PM
RE: What Did You Learn Today 2.0 - by Fireball - 11-18-2020, 10:04 PM
RE: What Did You Learn Today 2.0 - by Dānu - 11-18-2020, 09:57 PM
RE: What Did You Learn Today 2.0 - by Gwaithmir - 11-19-2020, 10:05 PM
RE: What Did You Learn Today 2.0 - by Fireball - 11-20-2020, 12:00 AM
RE: What Did You Learn Today 2.0 - by Bucky Ball - 11-22-2020, 01:30 AM
RE: What Did You Learn Today 2.0 - by Fireball - 11-22-2020, 03:26 AM
RE: What Did You Learn Today 2.0 - by TonyAnkle - 11-20-2020, 08:09 PM
RE: What Did You Learn Today 2.0 - by TonyAnkle - 11-21-2020, 04:12 PM
RE: What Did You Learn Today 2.0 - by Vera - 11-22-2020, 03:20 PM
RE: What Did You Learn Today 2.0 - by Astreja - 11-21-2020, 05:28 PM
RE: What Did You Learn Today 2.0 - by Dānu - 11-21-2020, 09:58 PM
RE: What Did You Learn Today 2.0 - by Fireball - 11-22-2020, 01:12 AM
RE: What Did You Learn Today 2.0 - by Vera - 03-26-2021, 03:21 PM
RE: What Did You Learn Today 2.0 - by Cavebear - 04-15-2021, 05:23 AM
RE: What Did You Learn Today 2.0 - by Astreja - 04-15-2021, 04:49 AM
RE: What Did You Learn Today 2.0 - by Vera - 05-27-2021, 09:47 PM
RE: What Did You Learn Today 2.0 - by Cavebear - 05-29-2021, 05:49 AM
RE: What Did You Learn Today 2.0 - by trdsf - 05-29-2021, 05:17 AM
RE: What Did You Learn Today 2.0 - by Cavebear - 05-29-2021, 05:52 AM
RE: What Did You Learn Today 2.0 - by Vera - 06-05-2021, 07:20 PM
RE: What Did You Learn Today 2.0 - by Astreja - 06-08-2021, 04:28 AM
RE: What Did You Learn Today 2.0 - by Vera - 07-22-2021, 07:10 PM
RE: What Did You Learn Today 2.0 - by Vera - 10-14-2021, 04:54 PM
RE: What Did You Learn Today 2.0 - by Dom - 10-14-2021, 07:00 PM
RE: What Did You Learn Today 2.0 - by Vera - 10-30-2021, 06:26 PM
RE: What Did You Learn Today 2.0 - by Vera - 11-02-2021, 10:39 PM
RE: What Did You Learn Today 2.0 - by Vera - 11-05-2021, 10:52 PM
RE: What Did You Learn Today 2.0 - by Dancefortwo - 11-05-2021, 11:58 PM
RE: What Did You Learn Today 2.0 - by Vera - 11-09-2021, 02:29 PM
RE: What Did You Learn Today 2.0 - by Szuchow - 11-09-2021, 02:31 PM
RE: What Did You Learn Today 2.0 - by Tres Leches - 12-01-2021, 02:26 AM
RE: What Did You Learn Today 2.0 - by Vera - 12-01-2021, 01:40 PM
RE: What Did You Learn Today 2.0 - by Tres Leches - 12-02-2021, 04:58 AM
RE: What Did You Learn Today 2.0 - by Dancefortwo - 12-02-2021, 06:12 AM
RE: What Did You Learn Today 2.0 - by Alan V - 12-02-2021, 11:47 AM
RE: What Did You Learn Today 2.0 - by Dancefortwo - 12-02-2021, 04:45 PM
RE: What Did You Learn Today 2.0 - by Alan V - 12-23-2021, 03:07 PM
RE: What Did You Learn Today 2.0 - by Vera - 12-25-2021, 04:10 PM
RE: What Did You Learn Today 2.0 - by Thingymebob - 12-25-2021, 04:24 PM
RE: What Did You Learn Today 2.0 - by Vera - 01-02-2022, 02:00 PM
RE: What Did You Learn Today 2.0 - by Vera - 04-25-2022, 04:21 PM
RE: What Did You Learn Today 2.0 - by bibito71 - 04-26-2022, 04:03 AM
RE: What Did You Learn Today 2.0 - by Vera - 04-26-2022, 02:09 PM
RE: What Did You Learn Today 2.0 - by bibito71 - 04-26-2022, 05:59 PM
RE: What Did You Learn Today 2.0 - by brewerb - 04-26-2022, 08:22 PM
RE: What Did You Learn Today 2.0 - by bibito71 - 04-26-2022, 09:35 PM
RE: What Did You Learn Today 2.0 - by Vera - 05-11-2022, 04:01 PM
RE: What Did You Learn Today 2.0 - by Vera - 06-30-2022, 04:06 PM
RE: What Did You Learn Today 2.0 - by Bucky Ball - 11-06-2022, 09:54 PM
RE: What Did You Learn Today 2.0 - by Vera - 07-25-2022, 02:22 PM
RE: What Did You Learn Today 2.0 - by Vera - 11-06-2022, 09:17 PM



Users browsing this thread: 1 Guest(s)