You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cryptography.bigb
+21-6Lines changed: 21 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -24,21 +24,31 @@
24
24
= Symmetric and public-key cryptography
25
25
{parent=Cryptography}
26
26
27
-
= Symmetric-key algorithm
27
+
= Symmetric encryption
28
28
{parent=Symmetric and public-key cryptography}
29
-
{wiki}
30
29
31
-
= Symmetric encryption
32
-
{synonym}
30
+
Symmetric encryption is a type of <encryption> where you use a password (also known as a "key") to encrypt your data, and then the same password to decrypt the data.
31
+
32
+
For example, this is the type of encryption that is used for encrypting the data in our <smartphones> and <laptops> with <disk encryption>.
33
+
34
+
This way, if your laptop gets stolen, the thief is not able to see your private photos without knowing your password, even though they are able to read every byte of your disk.
35
+
36
+
The downside is that that you have to type your password every time you want to login. This leads people to want to use shorter passwords, which in turn are more prone to <password cracking>.
37
+
38
+
The other main type of encryption is <public-key cryptography>.
39
+
40
+
The advantage of <public-key cryptography> is that it allows you to send secret messages to other people even if the attacker is able to capture the encrypted messages. This is for example what you want to do when sending a personal message to a special friend.
41
+
42
+
This is not possible with <symmetric encryption> because for your friend to decrypt the message in that system, you'd need to send them the password, which the attacker would also be able to eavesdrop and then decrypt the message.
33
43
34
44
= Provably secure symmetric-key algorithm
35
-
{parent=Symmetric-key algorithm}
45
+
{parent=Symmetric encryption}
36
46
{wiki}
37
47
38
48
There aren't any 2020, except in the trivial <one-time pad> case where the key is as large as the message: https://crypto.stackexchange.com/questions/10815/how-do-we-prove-that-aes-des-etc-are-secure
39
49
40
50
= One-time pad
41
-
{parent=Symmetric-key algorithm}
51
+
{parent=Symmetric encryption}
42
52
{wiki}
43
53
44
54
The only perfect cryptosystem!
@@ -47,6 +57,11 @@ The problem is that you need a shared <key (cryptography)> as large as the messa
47
57
48
58
Systems like <advanced Encryption Standard> allow us to encrypt things larger than the key, but the tradeoff is that they could be possibly broken, as don't have any <provably secure symmetric-key algorithms> as of 2020.
49
59
60
+
= Symmetric-key algorithm
61
+
{parent=Symmetric encryption}
62
+
63
+
Symmetric-key algorithm is al algorithm implementing <symmetric encryption>.
0 commit comments