You are currently viewing End-to-end encryption in an app explained

End-to-end encryption in an app explained

  1. When Alice starts the app, it generates a private and public key.
  2. Alice’s private key never leaves her phone. The app stores the public key on a server, available to all who send her message.
  3. When Bob writes to Alice, the app retrieves her public key. Then uses it to encrypt his message that only Alice’s private key can decrypt.
  4. The app sends an encrypted file through the server to Alice.
  5. Alice receives the file. The app uses her private key to decrypt the message.

The correlation between prime numbers and encryption

11 x 17 = 187 means the product of 2 large random prime numbers is the backbone of encryption.

So cracking the encryption means figuring out the two factors. Using brute force takes decades with today’s computers. If a hacker knows the two numbers (private key), it’ll take him a split second to crack it.

17,425,170 means the number of digits in the most significant prime number.

The integers make up your public key in part by calculating the number that shares no common factors. Also, they are less than the product of the two prime numbers. That’s why encryption confuses the attacker or hacker.

Read đź”–: Shouldn’t you be paid for your data?

Usamansari | Writer at large

Loves to read and watch movies & TV shows | On weekends you'd find me crushing it in the Call of Duty: Mobile | On my way to becoming a Fullstack Web Developer.

Leave a Reply