create account

Number Theory as a Guardian of Our Privacy. Prime Numbers, Euler Function and Euler Theorem... by krishtopa

View this thread on: hive.blogpeakd.comecency.com
· @krishtopa · (edited)
$203.00
Number Theory as a Guardian of Our Privacy. Prime Numbers, Euler Function and Euler Theorem...
**Hi, Steemers!**
 This is Kate.

Nowadays, more and more communication between people moves to the Internet. Important correspondence, file transfer, accounting, personal photos... Security of your data today - the primary problem.

![phone is tapped](http://i.imgsafe.org/4bd4f0bfca.png)

Let's figure out what path the message passes before it will reach the addressee:

1. First, it is in your computer/smartphone.
2. It's sent to the server of your Internet Service Provider (ISP).
3. If the server of your ISP and your recipient are not connected directly, then the message is going through some more servers/data centers.
4. Message reaches the server of your recipient Internet Service Provider
5. The message gets to the addressee.

![RSA1](http://i.imgsafe.org/4b3418f16e.png)

It turns out that your message passes through the hands of so many strangers and leak of information becomes possible (man in the middle attack). But why all your photos, messages and important data are still not published on the Internet? Because all of/almost all of the information in the network is encrypted. Let's see how a data transfer occurs through an intermediary.

---
RSA Algorithm
===

In the beginning, the person who wants to receive the message should generate two keys: using the first sender must encrypt the message (public key), and by using the second one (private key) recipient can decode it.

>*The algorithm of keys generating:*

>1. Two arbitrary prime numbers p,q are given ;
>2. Their product n = p x q is calculated;
>3. Euler function: Euler(n) = (p-1) x (q-1) is evaluated;
>4. It randomly selects a number e, that is less than Euler(n) and is relatively prime to n;
>5. Looking for number d: e x d = 1 (mod Euler(n));

Now the pair {e,n} is a public key; the pair {d,n} is a private key.
Euler(n) - the amount of numbers less than n that are mutually simple with n.
A=B (mod C) - it's mean: the remainder of dividing A by C is equal to the remainder of dividing B by C.

After the receiver has generated keys, the public key is sent to the sender.

![RSA2](http://i.imgsafe.org/4b34259dde.png)


**The encryption process:**

>1. We have a message m;
>2. Get the public key {e,n};
>3. Encryption message using key {e, n}: H(m) = me mod n;
>4. Send the encrypted message H(m).

In any case, that attacker (man in the middle) sees only H(m). Think why he will not be able to decode it?

**The decryption process:**

>1. Get the message (H(m) = me mod n;
>2. Decryption using key {d, n}: (H(m)d) mod n = ( (me)d ) mod n = m;

The last equality is Euler's theorem.

Why is it so difficult to crack?

![thief](http://i.imgsafe.org/4bfa2ba50f.jpg)

---

Let's put ourselves in the place of attacker (man in the middle). So, what we have: Public Key {e,n} and the encrypted message H(m).

In order to decrypt the message H(m) we must choose the integer d (the private key of the recipient). Okay, let's drill down to the procedure:

>1. Calculate Euler(n): decompose n into the product of two prime factors n = p x q, computed Euler(n) = (p-1) x (q-1);
>2. Looking for d: e x d = 1 (mod Euler(n));
>
It's very simple, isn't it? Where's the catch? The catch is in step number one or rather in finding prime factors p and q.

Since initially, we did not specify what size of numbers can be , you probably thought that the operation of decomposition is very simple. In fact, the order of these numbers may be as much as 2^1024. It's a huge number. Enumeration of various options can take a lifetime!

Simple Example
===
![RSA3](http://i.imgsafe.org/4b3433adb0.png)

*The algorithm, described above is used ubiquitously nowadays and helps to keep our data private. But remember that there is no absolutely secure systems and be on the alert when you send or receive personal information.*

**With Love,
Kate**
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 83 others
properties (23)
authorkrishtopa
permlinknumber-theory-as-a-guardian-of-our-privacy-prime-numbers-euler-function-and-euler-theorem
categorypopularscience
json_metadata{"tags":["popularscience","science","academia","security","encryption"],"image":["http://i.imgsafe.org/4bd4f0bfca.png","http://i.imgsafe.org/4b3418f16e.png","http://i.imgsafe.org/4b34259dde.png","http://i.imgsafe.org/4bfa2ba50f.jpg","http://i.imgsafe.org/4b3433adb0.png"]}
created2016-08-29 23:11:15
last_update2016-08-30 08:25:30
depth0
children7
last_payout2016-09-30 03:24:18
cashout_time1969-12-31 23:59:59
total_payout_value187.402 HBD
curator_payout_value15.595 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length3,818
author_reputation48,350,480,258,009
root_title"Number Theory as a Guardian of Our Privacy. Prime Numbers, Euler Function and Euler Theorem..."
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,048,421
net_rshares44,146,167,452,771
author_curate_reward""
vote details (147)
@allmonitors ·
numbers game, thanks!
properties (22)
authorallmonitors
permlinkre-krishtopa-number-theory-as-a-guardian-of-our-privacy-prime-numbers-euler-function-and-euler-theorem-20160830t013647041z
categorypopularscience
json_metadata{"tags":["popularscience"]}
created2016-08-30 01:36:48
last_update2016-08-30 01:36:48
depth1
children0
last_payout2016-09-30 03:24:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length21
author_reputation1,268,659,305,442,164
root_title"Number Theory as a Guardian of Our Privacy. Prime Numbers, Euler Function and Euler Theorem..."
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,050,000
net_rshares0
@blockchainbilly ·
Security and encryption are quite interesting when you can understand what  makes it possible...
properties (22)
authorblockchainbilly
permlinkre-krishtopa-number-theory-as-a-guardian-of-our-privacy-prime-numbers-euler-function-and-euler-theorem-20160830t215709216z
categorypopularscience
json_metadata{"tags":["popularscience"]}
created2016-08-30 21:57:12
last_update2016-08-30 21:57:12
depth1
children0
last_payout2016-09-30 03:24:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length96
author_reputation808,834,406,582
root_title"Number Theory as a Guardian of Our Privacy. Prime Numbers, Euler Function and Euler Theorem..."
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,062,303
net_rshares0
@eric-boucher ·
$0.03
Great article again and thank you for the security heads up.   ;)   Namaste  :)
👍  
properties (23)
authoreric-boucher
permlinkre-krishtopa-number-theory-as-a-guardian-of-our-privacy-prime-numbers-euler-function-and-euler-theorem-20160829t234317376z
categorypopularscience
json_metadata{"tags":["popularscience"]}
created2016-08-29 23:43:18
last_update2016-08-29 23:43:18
depth1
children1
last_payout2016-09-30 03:24:18
cashout_time1969-12-31 23:59:59
total_payout_value0.029 HBD
curator_payout_value0.002 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length79
author_reputation68,503,601,066,539
root_title"Number Theory as a Guardian of Our Privacy. Prime Numbers, Euler Function and Euler Theorem..."
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,048,825
net_rshares76,942,970,209
author_curate_reward""
vote details (1)
@krishtopa ·
$0.04
Thank you!
👍  
properties (23)
authorkrishtopa
permlinkre-eric-boucher-re-krishtopa-number-theory-as-a-guardian-of-our-privacy-prime-numbers-euler-function-and-euler-theorem-20160830t000921986z
categorypopularscience
json_metadata{"tags":["popularscience"]}
created2016-08-30 00:09:21
last_update2016-08-30 00:09:21
depth2
children0
last_payout2016-09-30 03:24:18
cashout_time1969-12-31 23:59:59
total_payout_value0.028 HBD
curator_payout_value0.009 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length10
author_reputation48,350,480,258,009
root_title"Number Theory as a Guardian of Our Privacy. Prime Numbers, Euler Function and Euler Theorem..."
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,049,162
net_rshares88,549,142,572
author_curate_reward""
vote details (1)
@radoslaw · (edited)
Hi Kate,
you have a small mistake in the line:
> Now the pair {e,n} is private key; the pair {d,n} is a public key.

It is the other way around - both in theory and in your pictures. E comes from encrypt and D from decrypt - it means it is exactly as you qoute later:
> Get the public key **{e,n}**;

It is a quick fix :)
properties (22)
authorradoslaw
permlinkre-krishtopa-number-theory-as-a-guardian-of-our-privacy-prime-numbers-euler-function-and-euler-theorem-20160829t234455449z
categorypopularscience
json_metadata{"tags":["popularscience"]}
created2016-08-29 23:44:54
last_update2016-08-29 23:45:12
depth1
children1
last_payout2016-09-30 03:24:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length321
author_reputation750,186,072,801
root_title"Number Theory as a Guardian of Our Privacy. Prime Numbers, Euler Function and Euler Theorem..."
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,048,854
net_rshares0
@krishtopa ·
thanks, @radoslaw.
I'm glad you attentively read my article and thanks for pointing out the mistake
properties (22)
authorkrishtopa
permlinkre-radoslaw-re-krishtopa-number-theory-as-a-guardian-of-our-privacy-prime-numbers-euler-function-and-euler-theorem-20160829t234922960z
categorypopularscience
json_metadata{"tags":["popularscience"],"users":["radoslaw"]}
created2016-08-29 23:49:21
last_update2016-08-29 23:49:21
depth2
children0
last_payout2016-09-30 03:24:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length99
author_reputation48,350,480,258,009
root_title"Number Theory as a Guardian of Our Privacy. Prime Numbers, Euler Function and Euler Theorem..."
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,048,913
net_rshares0
@zein ·
i vote are you willing to back my vote bloggers ?
I feel happy if you vote me my work
https://steemit.com/photography/@zein/my-work-together-nikon-d3300-original-photos
👎  
properties (23)
authorzein
permlinkre-krishtopa-number-theory-as-a-guardian-of-our-privacy-prime-numbers-euler-function-and-euler-theorem-20160830t065210866z
categorypopularscience
json_metadata{"tags":["popularscience"],"links":["https://steemit.com/photography/@zein/my-work-together-nikon-d3300-original-photos"]}
created2016-08-30 06:52:15
last_update2016-08-30 06:52:15
depth1
children0
last_payout2016-09-30 03:24:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length168
author_reputation-162,207,849,375
root_title"Number Theory as a Guardian of Our Privacy. Prime Numbers, Euler Function and Euler Theorem..."
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id1,052,641
net_rshares-64,721,747
author_curate_reward""
vote details (1)