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
#27

What Did You Learn Today 2.0
I learned more about the basic cryptography that is used in cyber security via multiple videos by Mike Meyers.  It was interesting to get more underneath the various types of cryptographic attacks: for the purposes of an instructional simulation, Meyers would use a particular program to perform dictionary, brute force, and rainbow table attacks.  Watching these videos gave me more of an appreciation for using more complicated passwords.  I also enjoyed his references to the math involved in the various encryption/decryption schemes. In particular, IMO, elliptical curve cryptography is pretty neat.
The following 1 user Likes Kernel Sohcahtoa's post:
  • Fireball
Reply
#28

What Did You Learn Today 2.0
(07-27-2019, 07:49 PM)Kernel Sohcahtoa Wrote: I learned more about the basic cryptography that is used in cyber security via multiple videos by Mike Meyers.  It was interesting to get more underneath the various types of cryptographic attacks: for the purposes of an instructional simulation, Meyers would use a particular program to perform dictionary, brute force, and rainbow table attacks.  Watching these videos gave me more of an appreciation for using more complicated passwords.  I also enjoyed his references to the math involved in the various encryption/decryption schemes. In particular, IMO, elliptical curve cryptography is pretty neat.

Would you mind pointing me to the videos you speak of? My stepson is a math and physics whiz, and I think this might be something to help drive his understanding of software development. I am a line-of-business backend developer, and have never done dev work that really required more than to understand high school-level algebra, so I'm at a bit of a disadvantage in finding interesting (to him) problems for him to work on independently. This might be the ticket.
The following 1 user Likes mordant's post:
  • Fireball
Reply
#29

What Did You Learn Today 2.0
I'd be interested as well. My eldest son is studying cyber security atm.
If you get to thinking you’re a person of some influence, try ordering somebody else’s dog around.
Reply
#30

What Did You Learn Today 2.0
(07-27-2019, 08:37 PM)mordant Wrote:
(07-27-2019, 07:49 PM)Kernel Sohcahtoa Wrote: I learned more about the basic cryptography that is used in cyber security via multiple videos by Mike Meyers.  It was interesting to get more underneath the various types of cryptographic attacks: for the purposes of an instructional simulation, Meyers would use a particular program to perform dictionary, brute force, and rainbow table attacks.  Watching these videos gave me more of an appreciation for using more complicated passwords.  I also enjoyed his references to the math involved in the various encryption/decryption schemes. In particular, IMO, elliptical curve cryptography is pretty neat.

Would you mind pointing me to the videos you speak of? My stepson is a math and physics whiz, and I think this might be something to help drive his understanding of software development. I am a line-of-business backend developer, and have never done dev work that really required more than to understand high school-level algebra, so I'm at a bit of a disadvantage in finding interesting (to him) problems for him to work on independently. This might be the ticket.

The videos were part of Mike Meyers' COMPTIA Security + course on Udemy and were in his cryptography section.  

I found these free Mike Meyer's videos on Youtube, which are part of his Security + course.

The following 1 user Likes Kernel Sohcahtoa's post:
  • mordant
Reply
#31

What Did You Learn Today 2.0
I learned that scientists think direct-collapse black holes are possible. Instead of black holes only being formed by the collapse of huge stars, they could under certain conditions be formed directly by the collapse of clouds of gas, bypassing the star phase. Scientists think this the likely explanation of why so many super-massive black holes formed early in the universe, per their observations of quasars, well within a billion years after the big bang.
The following 5 users Like Alan V's post:
  • Vera, mordant, Kernel Sohcahtoa, GenesisNemesis, Thumpalumpacus
Reply
#32

What Did You Learn Today 2.0
Last night I decided to learn/explore an additional proof exercise on RSA encryption that was in one of my Elementary Number Theory Texts. For anyone who is interested, my proof is below.  I've placed sections of this post in spoiler tags in order to make the reading easier.

The below proof is my own effort of the exercise.  If I’ve made any error or typo, I’d be grateful if it could be pointed out to me, and I will correct it as soon as possible.  Also, for anyone who is interested, I’d be happy to answer any questions/clarifications about the proof below. Thanks.

Exercise

Assume all notation in the RSA encryption Scheme.  Let d’ be the inverse of e modulo lcm (q – 1, r – 1).  Prove that (d’, m) acts as a decryption key (please note that d’ is a positive integer) (Strayer, section 8.2, exercise 12, pg. 238).

RSA encryption scheme 

The public encryption key is (e,m) where m = qr and r and q are distinct odd primes and e is a positive integer with the property that gcd (e, (q – 1)(r – 1)) = 1.  The encryption scheme is P^e ≡ C (mod m) where P represents plaintext and C represents cipher-text such that 0 ≤ P < m and 0 ≤ C < m. (Strayer, 235-238).

Main definitions and facts that are used in the proof

Show ContentSpoiler:

Show ContentSpoiler:

 
Proof

Show ContentSpoiler:

Show ContentSpoiler:

Show ContentSpoiler:

Show ContentSpoiler:
 
References

Burton, David M. (2011). Elementary Number Theory, 7th ed. (Indian edition). Chennai: McGraw Hill.

Chartrand, Gary; Polimeni, Albert D; and Zhang, Ping. (2013). Mathematical Proofs: A Transition to Advanced Mathematics, 3rd edition. New York: Pearson. 

Johnsonbaugh, Richard and Pfaffenberger, W.E. (2002). Foundations of Mathematical Analysis. New York: Dover Publications.

Strayer, James K. (1994). Elementary Number theory.  Illinois: Waveland Press.
Reply
#33

What Did You Learn Today 2.0
I don't do much learning and most of what i learn i quickly forget.
Reply
#34

What Did You Learn Today 2.0
Watched an episode of The Planets on PBS, and they mentioned that as the Sun expands as a Red Giant in a couple billion years or so, it could warm Titan's climate and melt ice, which would mean liquid water could flow on Titan, and life could evolve on Titan. Fascinating to think that, potentially, if that life becomes sentient, they would never know that Earth existed. Not sure how long life could exist on Titan before Titan is engulfed by the Sun though (and obviously this is all speculation, but still fascinating).
“For me, it is far better to grasp the Universe as it really is than to persist in delusion, however satisfying and reassuring.” -Carl Sagan.
Reply
#35

What Did You Learn Today 2.0
About analysis paralysis (and extinct by instinct): an individual or group process when overanalyzing or overthinking a situation can cause forward motion or decision-making to become "paralyzed", meaning that no solution or course of action is decided upon. A situation may be deemed as too complicated and a decision is never made, due to the fear that a potentially larger problem may arise. A person may desire a perfect solution, but may fear making a decision that could result in error, while on the way to a better solution. Equally, a person may hold that a superior solution is a short step away, and stall in its endless pursuit, with no concept of diminishing returns. On the opposite end of the time spectrum is the phrase extinct by instinct, which is making a fatal decision based on hasty judgment or a gut reaction.

The basic idea has been expressed through narrative a number of times. In one "Aesop's fable" that is recorded even before Aesop's time, The Fox and the Cat, the fox boasts of "hundreds of ways of escaping" while the cat has "only one". When they hear the hounds approaching, the cat scampers up a tree while "the fox in his confusion was caught up by the hounds". The fable ends with the moral, "Better one safe way than a hundred on which you cannot reckon".


I need to learn how to overcome it but I feel... paralysed (and I'm only mildly joking...)

Relatedly: The centipede's dilemma:

"A centipede was happy – quite!
Until a toad in fun
Said, "Pray, which leg moves after which?"
This raised her doubts to such a pitch,
She fell exhausted in the ditch
Not knowing how to run."

[Image: izZBSUZ.png]
“We drift down time, clutching at straws. But what good's a brick to a drowning man?” 
The following 3 users Like Vera's post:
  • Alan V, mordant, Thumpalumpacus
Reply
#36

What Did You Learn Today 2.0
About Lunchables. This looks positively vile. Why would you feed this to a child? To any living creature, really, but about above all, a child? Really?! [Image: emoticon-0119-puke.gif]

[Image: they-were-originally-designed-to-look-li...p=faces%22]

[Image: lunchables-creator-was-bummed-about-the-...p=faces%22]

[Image: there_s-a-reason-they-don_t-have-vegetab...p=faces%22]
“We drift down time, clutching at straws. But what good's a brick to a drowning man?” 
Reply
#37

What Did You Learn Today 2.0
(09-05-2019, 09:22 AM)Vera Wrote: About Lunchables. This looks positively vile. Why would you feed this to a child? To any living creature, really, but about above all, a child? Really?! [Image: emoticon-0119-puke.gif]

[Image: they-were-originally-designed-to-look-li...p=faces%22]

[Image: lunchables-creator-was-bummed-about-the-...p=faces%22]

[Image: there_s-a-reason-they-don_t-have-vegetab...p=faces%22]

Sloth. And convenience. My children never got fed that kind of stuff. My eldest son had heard of "Cheez-Wiz" and asked my wife to buy some. None of the other boys liked it, either.
If you get to thinking you’re a person of some influence, try ordering somebody else’s dog around.
Reply
#38

What Did You Learn Today 2.0
(09-05-2019, 01:43 PM)Fireball Wrote:
(09-05-2019, 09:22 AM)Vera Wrote: About Lunchables. This looks positively vile. Why would you feed this to a child? To any living creature, really, but about above all, a child? Really?! [Image: emoticon-0119-puke.gif]

[Image: they-were-originally-designed-to-look-li...p=faces%22]

[Image: lunchables-creator-was-bummed-about-the-...p=faces%22]

[Image: there_s-a-reason-they-don_t-have-vegetab...p=faces%22]

Sloth. And convenience. My children never got fed that kind of stuff. My eldest son had heard of "Cheez-Wiz" and asked my wife to buy some. None of the other boys liked it, either.

Today I learned that I REALLY need to turn on the a/c when inside  temperature is 15c  (59F).   I have the a/c set at 21C (69F)
I hate being cold, thank the FSM it NEVER snows in this city. 

 Don't know if I should be expecting some more rude shocks from climate change .So  far it's been hotter summers. As a kid, average summer temperature was mid 80's F ,with 90F being the hottest it usually got, very rarely hit 100F. Recent  years, we've had a week at a time at 100 and above, maxing at about 107F.  Last year, during one of those heat waves, it reached 122F, hottest day on record. I was expecting rolling power cuts to relieve demand  on the grid. Didn't happen. I was so pleased I could have just shit. 

I've said it before and I'll say it again; we're fucked.
Reply
#39

What Did You Learn Today 2.0
That Mike Myers also played Fat Bastard. Yes, it took me that long to learn that.
“For me, it is far better to grasp the Universe as it really is than to persist in delusion, however satisfying and reassuring.” -Carl Sagan.
Reply
#40

What Did You Learn Today 2.0
Learned that the hatchback latch on my car can get to an un-openable state, and that I will be cutting said latch off with a sawzall and replacing it.
Reply
#41

What Did You Learn Today 2.0
There are whole websites devoted to reviews of instant noodle dishes like ramen.
Mountain-high though the difficulties appear, terrible and gloomy though all things seem, they are but Mâyâ.
Fear not — it is banished. Crush it, and it vanishes. Stamp upon it, and it dies.


Vivekananda
Reply
#42

What Did You Learn Today 2.0
Gene Hackman is still alive at 89.  Banana Dance
“I expect to pass this way but once; any good therefore that I can do, or any kindness that I can show to any fellow creature, let me do it now. Let me not defer or neglect it, for I shall not pass this way again.” (Etienne De Grellet)
The following 1 user Likes Gwaithmir's post:
  • Dānu
Reply
#43

What Did You Learn Today 2.0
I just learned that Mathilda staged a coup, Aliza disappeared and has been replaced by an AI, undoubtedly created by Mathilda.
“Religion is excellent stuff for keeping common people quiet. 
Religion is what keeps the poor from murdering the rich.”
― Napoleon Bonaparte
Reply
#44

What Did You Learn Today 2.0
That the word cretin comes from the word christian. Talk about truth in advertising. Deadpan Coffee Drinker

Yesterday I learnt about Anna's eighty-eight, which is a pretty cool little critter.

[Image: f6f6f5d10dbe62acbfc5942462ec8b72.jpg]

And some time ago I learnt that there is a whole species named Clitoria.

[Image: Clitoria_%28253000626%29.jpg]
“We drift down time, clutching at straws. But what good's a brick to a drowning man?” 
The following 1 user Likes Vera's post:
  • Fireball
Reply
#45

What Did You Learn Today 2.0
About sea silk.

"An extremely fine, rare, and valuable fabric that is made from the long silky filaments or byssus secreted by a gland in the foot of pen shells (in particular Pinna nobilis).The byssus is used by the clam to attach itself to the sea bed.

The cloth produced from these filaments can be woven even more finely than silk, and is extremely light and warm; it was said that a pair of women's gloves made from the fabric could fit into half a walnut shell and a pair of stockings in a snuffbox."

[Image: 2663.jpg?width=1920&quality=85&auto=form...130ac3f182]

(And, obviously, about byssus.)
“We drift down time, clutching at straws. But what good's a brick to a drowning man?” 
The following 3 users Like Vera's post:
  • Alan V, Dānu, Kim
Reply
#46

What Did You Learn Today 2.0
The Bulgarian word for bedsheet, which, unsurprisingly, comes from Turkish, basically means night chador

I feel like I've been using bedsheets wrong all my life.

[Image: giphy.gif]
“We drift down time, clutching at straws. But what good's a brick to a drowning man?” 
The following 1 user Likes Vera's post:
  • Kim
Reply
#47

What Did You Learn Today 2.0
Mountain Dew contains an ingredient that is a patented flame retardant.
Mountain-high though the difficulties appear, terrible and gloomy though all things seem, they are but Mâyâ.
Fear not — it is banished. Crush it, and it vanishes. Stamp upon it, and it dies.


Vivekananda
The following 2 users Like Dānu's post:
  • Fireball, Kim
Reply
#48

What Did You Learn Today 2.0
(06-09-2020, 07:05 PM)Dānu Wrote: Mountain Dew contains an ingredient that is a patented flame retardant.
 
Big Grin
Water and CO2
If you get to thinking you’re a person of some influence, try ordering somebody else’s dog around.
The following 1 user Likes Fireball's post:
  • Kim
Reply
#49

What Did You Learn Today 2.0
About brain sand: "calcified structures in the pineal gland and other areas of the brain such as the choroid plexus. Older organisms have numerous corpora arenacea, whose function, if any, is unknown. Concentrations of "brain sand" increase with age, so the pineal gland becomes increasingly visible on X-rays over time, usually by the third or fourth decade."

And here I was, thinking my brain was slowly turning to mush...
“We drift down time, clutching at straws. But what good's a brick to a drowning man?” 
Reply
#50

What Did You Learn Today 2.0
(06-10-2020, 05:02 PM)Vera Wrote: About brain sand: "calcified structures in the pineal gland and other areas of the brain such as the choroid plexus. Older organisms have numerous corpora arenacea, whose function, if any, is unknown. Concentrations of "brain sand" increase with age, so the pineal gland becomes increasingly visible on X-rays over time, usually by the third or fourth decade."

And here I was, thinking my brain was slowly turning to mush...

I forget exactly what it was, probably eating meat, but there was a member of an odd Hindu sect that repeatedly argued on AF that the correlation was a sign that eating meat, if that's what it was, was bad for you, because he believed the pineal gland had a special role in linking our consciousness to the cosmic consciousness that is the universe, because, after all, we all know that we are but a figment in its imagination. Surprisingly he was decent at debating. Not surprisingly, the weakness of the basis for his beliefs forced him to take the low road in an argument on many occasions.
Mountain-high though the difficulties appear, terrible and gloomy though all things seem, they are but Mâyâ.
Fear not — it is banished. Crush it, and it vanishes. Stamp upon it, and it dies.


Vivekananda
Reply




Users browsing this thread: 1 Guest(s)