# encryption

Welcome! This short guide is your friendly guide to understanding **why encryption matters** and why it should matter to you.

This guide is for **beginners**. You don’t need to be a hacker or a computer genius to understand it.

### Why should you care?

have you ever realized, everyday we use encryption everyday:

* chatting with friends online
* logging into your favourite game
* buying something online

So encryption is like your digital lock. It helps keeping your personal stuff like your messages, passwords, and personal info safe.

If you are curious about how everything is safe like your emails, chats, and data this guide is for you but not gonna lie even if your just curious this should give you the information you need!

### By the end of this guide, you'll know:

* What encryption is
* Why it’s important for everyday life
* How it protects your privacy and freedom
* Simple tools to stay safe online

## What is Encryption?

Imagine you want to send a secret note to a friend. but instead of handing it to them directly, you have to leave it somewhere where others can take it. So to keep it private, you scramble the message in a way only your friend can understand it. That’s the basic idea behind **encryption**.

#### A Simple Definition

**Encryption** is a way of turning information into a secret code so that only the right person can read it.

Think of it like:

* Locking your message in a box
* Giving the key only to the person you trust

If someone else finds the box but doesn’t have the key then they can’t read what’s inside, similar situation like the secret message if someone took your secret note they wouldn't know how to read your secret note.

## Real-LIfe Example

Lets say you send this message:

```
I love gawr gura
```

With Encryption, it might look like this:

```
lfdkajf832oi34?fd!
```

To other people this text is just a random scrambled text, but the person with the key or password can turn it back into "I love gawr gura".

## Two Types of Encryption

So there are actually two main kinds of encryption :

#### 1. Symmetric encryption

* In symmetric only one key is used meaning one key will be used to encrypt and decrypt the message like sharing a password between two friends

As an example we can call our keys by their colors imagine in symmetric encryption the way we encrypt and decrypt our message is by using the same key like :

<figure><img src="https://2781327171-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMuMceEGBvWN37BjlZKgv%2Fuploads%2FXlXAAyl9QqONl0H8eBKM%2Fimage.png?alt=media&#x26;token=633c51d1-9736-4417-b5bb-09b030202fe9" alt=""><figcaption></figcaption></figure>

So the same key that is the color blue turned `I love gawr gura` into a weird text is the same the that can turn the weird text back to the original text that is `I love gawr gura`.

2. Asymmetric Encryption

* In asymmetric there are actually two keys used called a **public key** (for locking) and a **private key** (for unlocking)
* This is safer for talking to people you don't know well.

<figure><img src="https://2781327171-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMuMceEGBvWN37BjlZKgv%2Fuploads%2F6HveLQKtCFN5E5oa6AxP%2Fimage.png?alt=media&#x26;token=b4e90904-e3df-4e2d-a54c-e37892cc6302" alt=""><figcaption></figcaption></figure>

As you can see different colored keys are used in asymmetric encryption the blue to change the secret note to the weird text then the green key is used to decrypt the message back to the original secret note.

We’ll keep things simple in this book, so don’t worry if that sounds technical we’ll explain with examples later.

## Why It Matters

Encryption keeps your :

* Messages safe and private
* Game passwords safe
* Your payments secure

So actually you use it all the time without knowing it!

## Hope You Found This Guide Helpful

Thanks for reading!

I hope this guide helped you understand **what encryption is**, **why it matters**, and how it helps protects your privacy and security every day.

You don’t need to be an expert to care about your digital safety. Even learning the basics is a big step in the right direction.

\- auric
