Always wanted to protect your private information? Then start from learning basics of cryptography! by phenom

View this thread on steempeak.com
· @phenom ·
$101.19
Always wanted to protect your private information? Then start from learning basics of cryptography!
***Encryption** - the most important mean of security ensuring. The encryption mechanisms help to protect the confidentiality and integrity of information, to identify the source of the information. However, the encryption itself is not a solution for all problems. It is only a delaying action. It is obvious that any encryption system can be hacked.*

![](https://i.imgur.com/e3Hj9oQ.jpg)

---------

# **Basic encryption concepts**

**Encryption** - is hiding information from unauthorized persons providing access to authorized users. Members are called authorized if they have the appropriate key to decrypt the information.
The goal of any encryption system is to maximize the complexity of access to information by unauthorized persons even if they have the cipher text and know the algorithm that is used for encryption. 

*Encryption provides three security conditions of information:*

- **Confidentiality** - is used for hiding information from unauthorized users during the period of transmission or storage.

- **Integrity** -  is used for preventing some  information changes during the period of transmission or storage.

- **Identifiability** - is used for authenticating of the information source.

*Attacks on the encryption system:*

- through weaknesses in the algorithm;
- an attack on the key by "brute force" (manual key selection);
- through a vulnerability in the system environment.


*There are two basic types of encryption: **a secret key** and **a public key**.*

# **Encryption with a secret key**

Secret-key encryption provides confidentiality of the information in an encrypted state. Only those who know the key can decrypt the message. 

![](https://i.imgur.com/vjhNSug.gif)


*There are a lot of types of secret key encryption:*

# **Substitutional cipher**

Substitutional cipher processes single letter of the plaintext at one time. The message can be read by both users with the same permutation scheme. Key in the substitutional cipher is a shift of letters, either a completely reordered alphabet.

# **One-time Pad**

The only theoretically uncrackable encryption system, which is a list of numbers in a random order, used to encode the message. OTP can be used only once.

![](https://i.imgur.com/DdxOPhg.gif)

Disposable pads are used in IT environments with a very high level of security (but only for short messages).

# **Data Encryption Standard (DES)**

DES uses a key with a length of 56 bits. It uses 7 bits of a byte, eight bits of each byte is used for parity. DES is a block encryption algorithm that processes 64-bit block of plaintext at the same time. 16 cycles with a different subkey in each of the cycle are performed in the DES algorithm of encryption. The key is exposed to its own algorithm for the formation of 16 subkeys.

*All these algorithms are typically powerful enough to be used for general purposes.*

# **Public-key encryption**

Public key encryption - the most widely used encryption method, because it ensures the confidentiality of information and information remains unchanged during the transmission.

![](https://i.imgur.com/sa4vh64.gif)


Both users (sender and recipient) must have the key. Keys are associated with each other (so they are called a key pair), but they are different. If the message is encrypted with the key K1, then the message can be decrypted only by using a key K2. And vice versa. Thus one is called the secret key, and the other - open.

*The private key is kept secret by the owner of the keys.*


# **Key exchange algorithm of Diffie-Hellman**

Whitfield Diffie (Whitfield Diffie) and Martin Hellman (Martin Hellman) developed a public key encryption system in 1976. The system of Diffie-Hellman (Diffie-Hellman) was designed to cope with the problem of key distribution with the help of encryption systems with secret keys. The idea was to use a secure method of matching private key without transmitting the key in any other way.

- Two subscribers (P1 and P2) pick an encryption key for a stable connection with each other.
- P1 and P2 use two big integers a and b, and 1 <a <b.
- P1  picks a random i number and calculates I = ai mod b, and transmits the subscriber I P2.
- P2 j selects a random number and calculates J = aj mod b, and transmits J to the subscriber P1.
- P1 calculates k1 = Ji mod b.
- P2 calculates k2 = Ij mod b.
- We have k1 = k2 = ai * j mod b. 

So we see that k1 and k2 are the secret keys, intended for use in the transmission of other data.

And also another example:

![](https://i.imgur.com/k7OIVzt.png)


# Encryption using elliptic curves

Encryption using elliptic curves: there are two points A and B on an elliptic curve so that A = kB, it is very difficult to determine an integer k. The biggest advantage is that the keys have a smaller length (because of the complexity of the problem), causing faster calculations that are performed while maintaining security.

# Digital signatures

Digital signatures - a form of encryption that provides authentication. The popularity of digital signatures is constantly growing, and they were advertised as a way to move to full electronic information environment.

![](https://i.imgur.com/rq841N4.gif)


The information is processed by analyzing messages or using a hash. A hash function creates a checksum of data, which is then encrypted using the private key of the user and transmitted to the recipient of information. After receiving the information the same hash function is processed. The recipient decrypts the checksum received with the message and compares two checksums. Matching of checksums means that the information has not been changed.

-------
*It's obvious that I haven't told you everything about encrypting, as there are a lot of other interesting algorithms like International Data Encryption Algorithm, RC5, Skipjack,  Blowfish, Twofish, CAST-128, Taher Elgamal algorithm, Rivest-Shamir-Adleman algorithm and a lot of others; there are a lot of different methods of their use and this is just the beginning of the list of things that I want to tell you next time!*


***If you enjoyed reading this article, then **follow me** and you will learn a lot of new scientific and technical stuff.***

**Alex aka @phenom**
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 88 others
properties (23)
post_id897,112
authorphenom
permlinkalways-wanted-to-protect-your-private-information-then-start-from-learning-basics-of-cryptography
categorysecurity
json_metadata"{"users": ["phenom"], "image": ["https://i.imgur.com/e3Hj9oQ.jpg"], "tags": ["security", "technology", "education", "it", "steemsquad"]}"
created2016-09-08 22:43:54
last_update2016-09-08 22:43:54
depth0
children11
net_rshares31,014,779,188,922
last_payout2016-10-10 03:17:42
cashout_time1969-12-31 23:59:59
total_payout_value89.111 SBD
curator_payout_value12.076 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length6,224
author_reputation11,277,743,744,431
root_title"Always wanted to protect your private information? Then start from learning basics of cryptography!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (152)
@techguru ·
thanks for sharing
properties (22)
post_id897,505
authortechguru
permlinkre-phenom-always-wanted-to-protect-your-private-information-then-start-from-learning-basics-of-cryptography-20160908t233629632z
categorysecurity
json_metadata"{"tags": ["security"]}"
created2016-09-08 23:36:27
last_update2016-09-08 23:36:27
depth1
children1
net_rshares0
last_payout2016-10-10 03:17:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length18
author_reputation22,444,560,782
root_title"Always wanted to protect your private information? Then start from learning basics of cryptography!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@phenom ·
@techguru,  I'm glad technical guru gave a look at my article)
Stay tuned
properties (22)
post_id897,534
authorphenom
permlinkre-techguru-re-phenom-always-wanted-to-protect-your-private-information-then-start-from-learning-basics-of-cryptography-20160908t233947288z
categorysecurity
json_metadata"{"users": ["techguru"], "tags": ["security"]}"
created2016-09-08 23:39:48
last_update2016-09-08 23:39:48
depth2
children0
net_rshares0
last_payout2016-10-10 03:17:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length73
author_reputation11,277,743,744,431
root_title"Always wanted to protect your private information? Then start from learning basics of cryptography!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@bitcoinparadise ·
Wow thanks for sharing a detailed post. I think it is important for us to learn. Even someone who doesn't know computers.
properties (22)
post_id897,841
authorbitcoinparadise
permlinkre-phenom-always-wanted-to-protect-your-private-information-then-start-from-learning-basics-of-cryptography-201698t22273965z
categorysecurity
json_metadata"{"tags": "security"}"
created2016-09-09 00:27:42
last_update2016-09-09 00:27:42
depth1
children1
net_rshares0
last_payout2016-10-10 03:17:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length121
author_reputation52,885,100,418,823
root_title"Always wanted to protect your private information? Then start from learning basics of cryptography!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@phenom ·
Sure, everyone who uses a computer should know basics of  cyber security.
Thanks for the feedback. Appreciate it
properties (22)
post_id900,723
authorphenom
permlinkre-bitcoinparadise-re-phenom-always-wanted-to-protect-your-private-information-then-start-from-learning-basics-of-cryptography-201698t22273965z-20160909t102528838z
categorysecurity
json_metadata"{"tags": ["security"]}"
created2016-09-09 10:25:33
last_update2016-09-09 10:25:33
depth2
children0
net_rshares0
last_payout2016-10-10 03:17:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length112
author_reputation11,277,743,744,431
root_title"Always wanted to protect your private information? Then start from learning basics of cryptography!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@elguapo4twenty ·
I was needing this thanks!
properties (22)
post_id898,866
authorelguapo4twenty
permlinkre-phenom-always-wanted-to-protect-your-private-information-then-start-from-learning-basics-of-cryptography-20160909t035524883z
categorysecurity
json_metadata"{"tags": ["security"]}"
created2016-09-09 03:55:27
last_update2016-09-09 03:55:27
depth1
children1
net_rshares0
last_payout2016-10-10 03:17:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length26
author_reputation0
root_title"Always wanted to protect your private information? Then start from learning basics of cryptography!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@phenom ·
Cool! Follow me and you'll learn much more)
properties (22)
post_id903,490
authorphenom
permlinkre-elguapo4twenty-re-phenom-always-wanted-to-protect-your-private-information-then-start-from-learning-basics-of-cryptography-20160909t163816050z
categorysecurity
json_metadata"{"tags": ["security"]}"
created2016-09-09 16:38:21
last_update2016-09-09 16:38:21
depth2
children0
net_rshares0
last_payout2016-10-10 03:17:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length43
author_reputation11,277,743,744,431
root_title"Always wanted to protect your private information? Then start from learning basics of cryptography!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@xxxyyyzzz ·
Good article. I'd add some info about  OpenPGP standard and its implementations though.
properties (22)
post_id899,627
authorxxxyyyzzz
permlinkre-phenom-always-wanted-to-protect-your-private-information-then-start-from-learning-basics-of-cryptography-20160909t062309431z
categorysecurity
json_metadata"{"tags": ["security"]}"
created2016-09-09 06:23:12
last_update2016-09-09 06:23:12
depth1
children1
net_rshares0
last_payout2016-10-10 03:17:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length87
author_reputation639,080,484,186
root_title"Always wanted to protect your private information? Then start from learning basics of cryptography!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@phenom ·
good idea. Probably will tell about it in more details in a separate post
properties (22)
post_id900,725
authorphenom
permlinkre-xxxyyyzzz-re-phenom-always-wanted-to-protect-your-private-information-then-start-from-learning-basics-of-cryptography-20160909t102557497z
categorysecurity
json_metadata"{"tags": ["security"]}"
created2016-09-09 10:26:00
last_update2016-09-09 10:26:00
depth2
children0
net_rshares0
last_payout2016-10-10 03:17:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length73
author_reputation11,277,743,744,431
root_title"Always wanted to protect your private information? Then start from learning basics of cryptography!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@lemouth ·
Very nice article! Easy to read, to follow! Thanks for sharing!

I think this is also the first time I notice your first name ^^
properties (22)
post_id900,072
authorlemouth
permlinkre-phenom-always-wanted-to-protect-your-private-information-then-start-from-learning-basics-of-cryptography-20160909t081056178z
categorysecurity
json_metadata"{"tags": ["security"]}"
created2016-09-09 08:10:57
last_update2016-09-09 08:10:57
depth1
children2
net_rshares0
last_payout2016-10-10 03:17:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length128
author_reputation178,283,483,453,967
root_title"Always wanted to protect your private information? Then start from learning basics of cryptography!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@phenom ·
thanks for your feedback. Stay tuned to keep learning)
properties (22)
post_id900,730
authorphenom
permlinkre-lemouth-re-phenom-always-wanted-to-protect-your-private-information-then-start-from-learning-basics-of-cryptography-20160909t102640898z
categorysecurity
json_metadata"{"tags": ["security"]}"
created2016-09-09 10:26:45
last_update2016-09-09 10:26:45
depth2
children1
net_rshares0
last_payout2016-10-10 03:17:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length54
author_reputation11,277,743,744,431
root_title"Always wanted to protect your private information? Then start from learning basics of cryptography!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@lemouth ·
(well this time I learned a bit :p)
properties (22)
post_id901,336
authorlemouth
permlinkre-phenom-re-lemouth-re-phenom-always-wanted-to-protect-your-private-information-then-start-from-learning-basics-of-cryptography-20160909t120917097z
categorysecurity
json_metadata"{"tags": ["security"]}"
created2016-09-09 12:09:15
last_update2016-09-09 12:09:15
depth3
children0
net_rshares0
last_payout2016-10-10 03:17:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length35
author_reputation178,283,483,453,967
root_title"Always wanted to protect your private information? Then start from learning basics of cryptography!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000