r/bestof • u/Asddsa76 • Nov 21 '15
[math] Mathematician explains encryption.
/r/math/comments/3tn1xq/what_intuitively_obvious_mathematical_statements/cx7np4t?context=3153
u/KingomTrek Nov 21 '15 edited Nov 22 '15
The simplest way I can describe it is: someone has a lock that is unlocked. You give the unlocked lock to someone and they lock it with their message and send it back to you. All while you and only you have the key. This definition got me through the basics of RSA encryption lol
Edit: As the wonderfully named /u/LilyIsHotterThnRobin correctly pointed out my example only applies to RSA Encryption not the comment in OP about dual key
28
u/darkquanta42 Nov 21 '15
Is it more helpful to think of public/private key systems as public locks, private key systems? Anyone can encrypt something so that I'm the only one who can read it, but that still means only I can read it
Oddly the concept of 2 keys has always been part of what confuses me.
23
u/Epistaxis Nov 22 '15
Yeah, maybe your terminology would less confusing:
private key = key
public key = lock
You give copies of the lock to anyone who wants to send you a message. You keep the key to yourself.
1
u/PointyOintment Nov 22 '15
But you can also sign messages with your private key and people can use your public key to confirm that you, not an impostor, sent them. This kills the analogy.
2
u/Epistaxis Nov 22 '15
Well, that's not really encryption, just digital authentication. The analogy's scope is much smaller than what you can actually do with the same set of keys.
1
u/darkquanta42 Nov 25 '15
Does it though? I give you a key and a message, you already have a lock that you know I have the key to, assuming I havnt given the key to someone else you know the message is from me.
It's an odd use of the analogy at the point but it still holds.
12
u/KingomTrek Nov 21 '15
Yeah I agree. The whole process of encryption I feel like isn't hard to grasp its just the wording. It's kinda abstract imo. Someone once strutted argued with me on YouTube about how all they had to do to to break any encryption was to take a list of primes and try every single one. Hard for people to think of that layer of abstraction
1
u/Cassiterite Nov 22 '15
Wouldn't trying a whole bunch of primes work in theory? I mean in practice you'd need far too much computing power, but I can't see why it wouldn't work theoretically.
1
u/KingomTrek Nov 22 '15
In theory yes. But it's very hard because the primes used are hundreds of digits. The guy that was arguing with me claimed he could crack any encryption in days just by generating primes and testing
5
u/aydiosmio Nov 22 '15 edited Nov 22 '15
When you actually encrypt data, you do it with a symmetric algorithm. It's faster and usually safer.
Generate random key
Encrypt data with random key
Encrypt random key with recipient's public key
Repeat step 3 and append the result for each recipient
Send encrypted data and all encrypted versions of the key to recipient
Recipient attempts to decrypt all keys until successful, uses the decrypted key to decrypt the data
1
8
Nov 22 '15
You just described RSA. He explained dual key. They are different forms of encryption. His (dual key) requires each party hold the public key for every other party he wants to talk to. Yours (RSA) only requires you to have a single key. Which you stick in a lock and send around freely for people to put their shit in and send back to you. It allows you to only hold 1 key. But it also only allows 1 direction of encrypted communication.
2
u/KingomTrek Nov 22 '15
Ohhhh shoot you are right I was mistaken. My definition is not even close to dual key haha. I will promptly edit my post
4
u/donrhummy Nov 22 '15
your analogy is incorrect. it would be vulnerable to the man in the middle attack. eve could hold on to your lock and pass a different lock to the other person and then do the same in the opposite direction to you.
1
134
Nov 21 '15
But this is not an explanation about what encryption is or why it works. Its just an explanation of a three pass protocol which not even secure.
86
u/umop_apisdn Nov 21 '15
I know, on the original thread there are people going "I didn't understand cryptography but now I do" and they don't still because this isn't how cryptography actually works.
0
Nov 21 '15
[deleted]
19
u/wolfkeeper Nov 22 '15 edited Nov 22 '15
Well, EL5 is hard, but the EL15 version for RSA encryption is actually fairly simple.
Three numbers e,d,n are precalculated with the property that:
(pe)d mod n = p
you're just raising something to a power twice, and mod is the modulo operator, and d, n are big numbers. Turns out that you can calculate three big, hard to guess numbers where that works out.
e and n are the encryption key (the public key) and d and n are the decryption key (the private key)
To encrypt you do:
(pe) mod n = c
where p is the thing you want to encrypt, expressed as numbers, and c is the encrypted text, expressed as numbers.
You then send the encrypted text and to decrypt it they just do:
(cd) mod n = (pe)d mod n = p
and they get p back again.
It's almost literally that simple. There's a fiddly method to create e,d,n to start with but you only have to do that once. Also if you want it secure the numbers used need to be huge, so you have to use special multiply routines to make it run fast, but that's about it.
The clever bit is that, with only very modest care in choosing the numbers initially, it turns out that knowing e and n, doesn't allow you to work out d, so you can publish e and n far and wide, and keep d for yourself.
Basically, to oversimplify, it's secure because taking the 'e'th root in modulo arithmetic turns out to be ridiculously hard, so the fact that everyone knows e,n doesn't allow others to reverse the encryption.
1
u/cDonalds_Theorem Nov 22 '15
Wouldn't taking the modulo cause a loss of information? Unless you could guarantee they were exact multiples of one another (which would just be division)?
2
u/wolfkeeper Nov 22 '15 edited Nov 22 '15
Because of the particular powers chosen, the numbers all map to different numbers, so there's no loss of the initial information even though you've done it modulo n.
It's all cleverness to do with prime numbers.
For a simpler example, if you take any number 0-9 and multiply by 3 and take it modulo 10; then any possible number you can start with ends up on a different result to any other.
The reason that works is because 3 is not a factor of 10.
In fact it's guaranteed to work for any prime number.
Multiplying the result by 7 modulo 10 gives you the number back. That's because 3 * 7 = 1 modulo 10 = 1. So multiplying by 7 undoes the 'encryption' here.
That's just multiplying, they use powers because it's enormously more secure; but powers are just repeated multiplication.
→ More replies (1)33
u/Ar-Curunir Nov 21 '15
Have a look at DH key exchange; encryption isn't really something 5 year olds can understand.
The lock analogy is at simple as it gets without becoming technical.
18
u/dlp211 Nov 21 '15
And DH isn't even encryption. It's a key exchange technique which is simply a consideration when it comes to talking about encryption systems.
1
u/PointyOintment Nov 22 '15
I saw an explanation of DH using colors once, but I have no idea where and I've forgotten how that analogy actually worked. It was a good analogy though.
Edit: right here!
0
14
u/Illusi Nov 21 '15
The most common form of encryption today is public/private key encryption. The analogy goes like this.
Little shiguma has a secret message he wants to tell to daddy without his sister hearing it. He announces that he has something to tell dad. Dad hears this and proceeds to make a lock and a corresponding key. He sends the lock to shiguma, but keeps the key himself. Shiguma puts his message in a box and locks the box with the lock. Then he sends it back. Dad opens up the box with his key, and the message is safely across.
Without analogy: The receiver of the message creates a private key and a public "key". The public key is really a procedure to scramble the message such that only the corresponding private key can unscramble it. The sender encrypts the message using the public key. The receiver decrypts the message using the private key. The private key never leaves the receiver, so only the receiver can decrypt the message.
→ More replies (3)18
u/dlp211 Nov 21 '15
The most common form of encryption today is public/private key encryption
No. Nonononononono. The vast majority of encrypted messages are passed using symmetrical encryption, eg: AES, Triple-DES, etc. Public/Private Key-Pair encryption is used mostly for authentication and symmetrical key passing, but is not used for much more than that due to the expense of the encrypt and decrypt steps.
Encryption is not an easy subject and it lacks any real analogies for the same reason. There are a ton of details that have to be correct and accounted for when designing not only the algorithms, but also the implementation in computer systems.
To the lay person, all they need to know is that encryption makes it so that you can share information, like your credit card number, and no one else can eavesdrop on that sharing. To those who want to know how it works....MATH, lots and lots of it.
2
2
u/Veedrac Nov 22 '15
Eh, there are simple forms of encryption. For example, one time pads. And several basic encryption schemes can be summarised as "like a one time pad but with a random number generator instead". Like counter mode AES.
And random number generators are just "things producing number streams from input that we think is hard to reverse".
Yes, this isn't enough detail to let one implement a cryptography library, but ELI5s are like that. The romantization of cryptography as "super hard" is just silly. It's not super hard -certainly not moreso than quantum mechanics, which nobody objects so strongly to ELI5s for- the field just has very strict quality control.
3
u/dan_144 Nov 21 '15
This is sort of relevant: Diffie-Hellman analogy. Using this will give two people the same key for encrypting and decrypting messages and provides a method for sending the key to each other publicly without it being stolen.
3
u/APleasantLumberjack Nov 21 '15
Simple version: the key to encrypt and decrypt are different. I tell everyone the encryption key, but keep the decryption key secret.
Thus anyone can send me a secure message but only I can read it.
The analogy people use is: I send you an open padlock but keep the key, you lock a message and send it back. No one could intercept and steal the key because it was never sent.
2
Nov 22 '15
Here is the simplest way how asymmetric key cyrptography works, I hope it helps:
Lets say you have a function E, and the inverse of this function D ,but here is the trick: D is a really hard problem to solve (it requires a lot of time/effort). However you have a secret way of finding its solution, like a backdoor.
So you give everyone who wants to talk to you the E function and tell them to use it on their messages and send the result to you. And you find the original message using the inverse function D. Remember you have a backdoor so it is easy for you but anyone else trying to read the message will have to solve that very hard problem.
In theory we want this problem to be so hard that it would not possible to be solved in a reasonable time. (If you have enough time you can break any modern encryption method). Two examples of hard problems are Integer factorization (RSA), Discrete Logarithm Problem (Diffie-Hellman key-exchange).
1
u/PointyOintment Nov 22 '15
also elliptic curves, which are now used with DH key exchange, because discrete logarithms are showing potential for weaknesses
2
Nov 22 '15 edited Nov 22 '15
As a non mathematician the best way to understand encryption is actually to learn the history of coding, which goes from the very beginning of the creation of language, occultism in religion, modern warfare and sending messages through battle fields, first computer languages and spying as a commercial market in our last century. And here you go with a proper explanation of encryption without using a single number. An explication that would actually give you proper insight about the situation today.
5
Nov 21 '15 edited Nov 21 '15
Yeah, this is a dumbed down description of public key exchange, which is a family cryptographic protocols. This wouldn't be a description of say, AES, a popular encryption algorithm. It's a good analogy for explaining some protocols to a layperson, but there's some misinformation going on here.
For anyone who wants to know more, look up Diffie-Hellman key exchange. The analogy from the OP shows the general concept, but ignores important mathematical concepts required to make it secure such as cyclic groups and the discrete logarithm problem. These concepts are hard to fit into an analogy.
4
Nov 21 '15
Ya, the title bothers me. This is a very basic description of the idea behind key exchange.You use this step to establish a common key.
1
u/doublehyphen Nov 22 '15
Diffie-Hellman key exchanges are safe and are commonly used in TLS and ssh. Of course you also need to add some protection from man in the middle attacks and probably also a symmetric cipher to speed up data encryption.
2
1
1
u/wasdninja Nov 22 '15
It isn't secure? It seems to rely on the factoring problem and that is hard so it seems to stand to reason that the method that relies on it is secure. I'm assuming that both parties are choosing sufficiently large primes.
7
u/Ar-Curunir Nov 22 '15
No, it isn't secure:
Eve sees c_1 = m*a, c_2 = m*a *b, and m_3 = m*b.
She can divide c_2 by c_1 to get Bob's secret key, b. Then, she can divide c_3 by b to get the message m.
1
19
Nov 21 '15
Box key lock question is very often asked in programming interviews
20
u/luisbg Nov 21 '15
How is the question phrased to have this as the answer?
24
u/Epistaxis Nov 22 '15
"Explain encryption as if I don't understand encryption but you don't either"
11
2
Nov 22 '15
You have a Box with a lock and key. You have to send a message in that box to your freind but there is an enemy who can intercept all deliveries of the box. How would you ensure that the message reaches across without being read
7
u/dlp211 Nov 21 '15
I've never been asked this question in an interview before, and if this was ever the answer to an interview question, I would run from that company.
23
u/Railorsi Nov 21 '15
This is actually a pretty common explanation for encryption, good none the less.
7
u/bonestamp Nov 21 '15
Yup, I actually posted it in a comment a while ago and did not get any gold nor a /r/bestof post (not complaining), and I think my explanation was more concise. I can't take any credit for it either; I read it in a book called "codes and ciphers" a number of years ago.
→ More replies (2)9
Nov 22 '15
But did your comment come along with a blatantly stupid "encryption scheme" that can be broken by using one multiplication and one division operation? And was it in r/math so people would assume you knew what you were talking about?
18
u/Ar-Curunir Nov 21 '15 edited Nov 21 '15
The math is wrong though...
The lock analogy is correct, but the math isn't.
EDIT: the encryption shown is not secure; you can easily extract the message when you're eavesdropping on the protocol.
7
6
u/memeship Nov 21 '15
What math is incorrect? Looks like the only math here is multiplying and dividing.
E.g. Let's say my key is {2, 7, 19} and yours is {5, 11, 23}. The message I want to send is "100".
So I encrypt on my side:
100 * 2 * 7 * 19 = 26600
...and send it to you. Then you encrypt it on your side:
26600 * 5 * 11 * 23 = 33649000
...and send it back to me. Then I decrypt your message with my key:
33649000 * 1/2 * 1/7 * 1/19 = 126500
...and finally, send it back to you, where you decrypt with your key:
126500 * 1/5 * 1/11 * 1/23 = 100
The only messages that were sent were 26600, 33649000, and 126500. So Eve wouldn't be able to tell what I was originally sending to you.
Note that this would be pretty weak encryption since all we're doing is multiplying, and we're only using three numbers. This particular encryption might not be too difficult to figure out. But the example is only meant to illustrate a basic understanding of the concept.
15
u/Ar-Curunir Nov 21 '15 edited Nov 21 '15
You can extract the message however, which defeats the purpose of the "encryption":
m*(ab)/m*b = a. Then divide c_1 = m*a by a to get back mThere's no use in promoting a basic understanding of the concept when the example is incorrect. Also hardness of factoring has nothing to do with the number of primes you use; indeed the RSA modulus is a product of two primes.
9
u/MyOtherAltIsAHuman Nov 22 '15
You send an encrypted message to a recipient, Ma: 26600
Your recipient sends you a double encrypted reply, Mab: 33649000
Eve divides: 33649000 / 26600 = 1265
You send a message to your recipient with his encryption key, Mb: 126500
Eve divides: 126500 / 1265 = 100
The only messages that were sent were 26600, 33649000, and 126500. So Eve wouldn't be able to tell what I was originally sending to you.
Eve has decoded your message using nothing more than 26600, 33649000, and 126500.
Note that this would be pretty weak encryption since all we're doing is multiplying, and we're only using three numbers.
It clearly doesn't matter how many numbers you use, their product is all that is needed, and if you attempt to use addition or subtraction, it doesn't work; you end up with non-integers. Observe:
Message 10. Your key: x2+1. Recipient key: x3+5.
(10x2)+1 = 21 //message encrypted with your key.
(21x3)+5 = 68 //message encrypted with both keys.
However you decode it, it doesn't work. (68-1)/2=33.5 or (68/2)-1=33
(33.5/3)-5 = 6.167
(33.5-5)/3 = 9.5
(33/3)-5 = 6
(33-5)/3 = 9.333
No matter how you manage your order of operations, you never get the correct answer. This principle only works with multiplication, and even then, I don't see how it is secure. There's something missing here.
3
u/memeship Nov 22 '15
The multiplication in the example is meant as the hashing step. Obviously in real life you wouldn't do this. I don't know why it's so hard to understand that.
What I was originally responding to was a comment that said "the math is wrong". There's nothing wrong with the math. It may be a bad encryption model, but it's mathematically correct.
3
u/Ar-Curunir Nov 22 '15
Hashing has nothing to do with this; the point of the example was to explain how encryption works; if the example is insecure, then it defeats the purpose of the example. I don't know why it's so hard for you to understand that.
There's really no point to demonstrate, because the only cool property about encryption is that you can hide stuff; if the example fails to do that, it's not an example of encryption.
3
Nov 22 '15
Yep, that sub has gone to shit. I used to try to explain things there but they downvote correct things and upvote nonsense.
6
Nov 21 '15
I agree with that guy who recommends The Code Book, by Simon Singh, if you have even the slightest interest in ciphers and cryptography. Awesome read.
1
u/IntellegentIdiot Nov 22 '15
I was about to recommend that. Shame they never released the TV series on DVD. He also directed this episode of Horizon about Fermats last theorem
5
u/moeburn Nov 21 '15
Correct me if I'm wrong, but this isn't how encryption usually works, is it?
4
Nov 21 '15
What's described is one specific style of encryption, not 'encryption' in general. The bestof post is awkwardly titled.
13
u/fuzzynyanko Nov 21 '15
One of the crazier parts of cybersecurity.
You have a locked box with a password. You have a tool, whose tools and schematics are completely available online. You can even acquire the tool yourself. You even have the schematics for the box's lock!
The box is locked. It requires the password to open. Often, your password isn't the box's password. You have to feed the password through the tool, and the tool gives you the actual box's password.
There's an assumption that the bad guy has your source code. The algorithms and papers explaining them are publicly-available Internet RFCs
1
23
u/hawkfalcon Nov 21 '15 edited Nov 21 '15
Great explanation. I made a video on this very topic recently! https://youtu.be/buob3XCNEKQ
Edit: I made it public, which is why it shows it was uploaded today.
3
u/howyoudo Nov 21 '15
What's the deal with Eve? She was even in the OP. Is she in accounting with Janice?
What also makes Telegram the best. Never heard of them before, but are they publicly audited by chance. I prefer OWS stuff which is constantly audited for security.
I wouldn't recommend using a website for PGP. While might be a short fix can also easily MiTM the site itself, and people will accept by default even if cert doesn't authenticate properly. Would have maybe gone with GPG instead to make the keypair locally. You also have hush which will do it server side so you're not transmitting the private key.
6
u/fezir108 Nov 22 '15
What's the deal with Eve?
Alice, Bob, and Eve are common placeholder names when talking about cryptography. Typically Alice and Bob are sending and receiving messages and Eve is trying to listen in.
https://en.wikipedia.org/wiki/Alice_and_Bob#Cast_of_characters
3
u/howyoudo Nov 22 '15
Gotcha. Makes sense. Just never came across any analogies or scenarios with them listed before.
Wonder if it's Eve for eavesdropper with just A/B names added in to help explain.
2
u/PointyOintment Nov 22 '15
You might also want to look at Threema, Cryptocat, and OTR.
And how do you know so much about this without ever hearing of Alice and Bob?
1
u/howyoudo Nov 22 '15
Heard of Cyrptocat, but I will definitely look into Threema and OTR. Thanks!
I really don't know and have been wondering myself since yesterday since they're so popular. Only conclusion I could reach is maybe I got the fundamentals down before they were introduced. I'm also not one to need ELI5 stuff to understand math/science related topics. I'm a left brain while my brother is a right brain.
Not saying that's a bad thing it's just not my way of learning. I research a lot of various subjects for a minimum of 6 hours a day to feed my hyperactive brain. I'm also not a visual learner, so when I study materials it's usually via documentation and white papers, or by following conversations of professionals in the area. If I don't know something I look it up to understand it which leads to another item to study etc. I've fallen down so many rabbit holes it's not even funny anymore.
4
u/thebigbadben Nov 21 '15
The key thing to notice here is that it's possible to remove the first lock without removing the second lock.
3
u/rawling Nov 22 '15
The key thing to notice here is by seeing the box with the first lock on it and with both locks on it, it's possible to remove the second lock from when the box only has the second lock on it and open the box.
1
u/thebigbadben Nov 22 '15
What? That would mean that Eve could get the message on its second trip to Bob
2
u/rawling Nov 22 '15
Yes, Eve can get the message.
Eve sees
magoing from Alice to Bob - can't do anythingEve sees
mabgoing from Bob to Alice - can divide to getbbut notmEve sees
mbgoing from Alice to Bob - can divide to getm(anda)2
u/thebigbadben Nov 22 '15
Oh, fair point. That's why multiplication like this isn't used in a 3 pass protocol. The encryptions that are actually used, however, need to have the property that the first encryption can be removed before the second, which is to say that the encryption processes "commute".
3
u/iYoona Nov 22 '15
I understand the concept when they used the locks. But can you explain in the context of what the original OP said? Regarding the secrets?
1
u/PointyOintment Nov 22 '15
The analogy was wrong, so no. But there are many comments here that kinda explain it. Look up Diffie–Hellman key exchange if you want more. Wikipedia has a diagram using an analogy with colors (which is also maybe kinda broken in the same way, but illustrates the concept well).
3
5
u/cowmu Nov 21 '15 edited Nov 21 '15
There are so many nuances to cryptography that it's really hard to generalize for an unfamiliar audience in a few sentences. You can do the lock/key/box examples to describe asymmetric principles securing a symmetric key, but there are so many different mechanisms supporting it that should be addressed as well.
While Diffie-Hellman and RSA are the most popular protocols with key exchanges, you also have to consider their implementation/configurations (and subsequent versions of the frameworks which are being used), Perfect Forward Secrecy, the role of CAs, session keys, etc. That isn't even touching on some of other concepts like post-quantum cryptography, which has the potential capabilities to outright break both RSA and Diffie-Hellman. There are PQC exchanges designed for this that operate very differently from primate factorization, such as the Niederreiter Crypotsystem (more so the variants derived from Niederreiter) or JPAKE. Elliptic curve cryptography has also become more popular and works with elliptic curves over finite fields. I'm certainly no expert on the matter, but I believe cryptographic implementations warrant a bit more than the lock/key/box, not that I could write something better myself.
9
u/rawling Nov 21 '15
As one of the comments says, this is bollocks. If you have ma, mab and mb you can divide to get m.
-1
u/memeship Nov 21 '15
The multiplication step is there to illustrate a point. Obviously the hashing in real life would be much more complex then simply multiplying by a number.
3
2
2
8
u/gagnonca Nov 21 '15 edited Nov 21 '15
https://en.m.wikipedia.org/wiki/Diffie–Hellman_key_exchange
This is the basis for all internet security. I work in software security
op actually did a terrible job of explaining it though. There is no division involved. It uses modular arithmetic. His analogy is decent though.
4
u/Joeskyyy Nov 21 '15
Modulo uses division as part of the arithmetic...
0
u/gagnonca Nov 21 '15 edited Nov 21 '15
Yeah but why not explain it accurately and say it uses modular arithmetic?
3
u/Joeskyyy Nov 21 '15
I would normally day to keep it more simple for people to understand. I just realized that's in the math sub, however haha but it's still pretty much spot on, less the "division" not being modulo
2
u/gagnonca Nov 21 '15
Yeah it if were ELI5 I would let it pass. On a math sub they should give the dirty details.
2
u/thebigbadben Nov 21 '15
This is an explanation of how some encryption methods work. There are a lot of different methods of encryption over public channels that are in use.
2
u/Joeskyyy Nov 21 '15
For those looking for an ELI5 version this one is probably my favorite explanation of Diffie-Hellman:
http://www.youtube.com/watch?v=YEBfamv-_do
Everyone can understand colours!
2
2
u/datchilla Nov 22 '15
Funny, I was fairly sure /u/UlyssesSKrunk was a troll account. All the comments I had every seen from him/her until now was "wat" or "no".
2
Nov 22 '15
Another example is why any spy speaks in code. You can listen to everything i say, but if i say "the crow caws at midnight", that doesn't mean shit to a third party listener. Does that mean to act? Is it a decoy? How would you know, even though you listen to everything I say
6
u/EatATaco Nov 21 '15
The primes are just the mathematical reason why it is hard to break, but don't really help explain how it works.
I like the mailbox analogy. I have a public key, which is my mailbox address. Anyone can come by and drop whatever they want in it, but I am the only one who can open it. My key to unlock it is my private key.
How do I know the person who dropped whatever in my box is actually who they say they are? Well, they drop their own lockbox into my mailbox with a padlock on it. The padlock on their box is their private key. They post the combo on their website for everyone to see. So that combination is the public key.
Now, anyone can open their box but because they gave us the combo, we can be confident that it was actually them who locked that box. And because it is safe inside my mailbox, they can be confident that I will be the only one able to get to the box.
2
u/aon9492 Nov 21 '15
The padlock on their box is their private key.
Should that not be "public key"?
3
u/copascetic Nov 21 '15
No, in this case the analogy is for a signature (you could encrypt as well if you wanted to, but it's less useful since the public key is, well, public). You need to sign ("lock") with your private key, and anyone with your public key can verify ("unlock"). A better analogy would be a seal of some kind, but I don't know of any physical mechanism which has the same properties as public key signatures...
1
u/PointyOintment Nov 22 '15
For signatures, I was thinking of a window in your mailbox that you can post messages in. Everyone who reads the messages you post there knows they're from you, because only you can open the mailbox to post them. But IDK how to combine this with the other direction, sending a message to a specific person only.
1
1
1
1
1
u/cantCme Nov 21 '15
If you like stuff like this, I advice you to check the numberphile and computerphile YouTube channels. They also have some great videos explaining cryptography and other stuff
1
Nov 22 '15
numberphile
I remember watching a video that "prooved" that some diverging infinite sum was actually equal to a number.
This was done by using some uncommon definition of "converge" but without specifying it.
0
Nov 21 '15
All he did was put this old YouTube video in words:
https://www.youtube.com/watch?v=MsqqpO9R5Hc&feature=youtu.be&t=177
0
u/MyPostIs Nov 21 '15
That analogy reminds of the fox, rabbit, and lettuce riddle. Makes perfect sense
0
0
u/ProtoKun7 Nov 21 '15
The locked box analogy is one I was already familiar with but I like the way he phrased it.
0
u/FalconX88 Nov 22 '15
So every encrypted message is going forward, back and forward again? Is this also true for mails?
0
u/oldschoolfl Nov 22 '15
He was regurgitating Simon to pawn it off as his own just to impress some girls and embarrass my friend.
0
u/b4ux1t3 Nov 22 '15
It's a good way of describing it, yes. That's why it's in every book on the subject I've ever read.
I think the official Pearson Security+ literature even uses it, if I remember right.
0
u/FeistyRaccoon Nov 22 '15 edited Nov 22 '15
I prefer this
Each child shares with the other a box maker.. once a box is created with the shared boxmaker it is locked and can only be opened with a childs personal boxmaker.
Each child also has a personal box maker If a box is created by the child personal box maker then the box can be opened by one of their shared box maker.
Now if sara and tim want to share a secret sara puts a message in a box created by her box maker then put that box in a box created with tims box maker, the box gets passed round the class untill it reaches tim.
When Tim receives the box he opens it first with his personal box maker takes out the second box and opens that with saras shared box maker which proves its from her as it can only be opened by her shared box maker...
the messages says "i luv u".
1
u/PointyOintment Nov 22 '15
Replace "boxmaker" with "key" and you're just explaining asymmetric encryption, without any analogy.
1
u/FeistyRaccoon Nov 22 '15 edited Nov 22 '15
Its in a form everyone can identify (passing a note round) and putting stuff in a box... yes its based on Asymetric encryption but the other is neither symetric or asymetric so whats with the downvotes? To me the other explanation makes no sence..
0
u/josue804 Nov 22 '15
Gawd, I was having such a hard time understanding this because I read it as if Alice could also see what primes each person was using to encrypt. I could not understand how she couldn't figure it out having all the information! I need to go to sleep.
676
u/1h8fulkat Nov 21 '15
As an IT security analyst who works on certificate authorities...this is great. I plan on using the analogy in the future to explain certs to people.