Skip to content

Encryption

Asymmetric Encryption

Creating an SSH key

ssh-keygen

Creates 2 files in the ~/.ssh folder - id_rsa - private key - id_rsa.pub - public key

Create a shared key

sequenceDiagram
    Alice->>Alice: Create a private/public key
    John->>John: Create a private/public key
    Alice->>Alice: Create the shared key and encrypt with John's public key
    Alice->>John: Send the encrypted shared key
    John->>John: Unencrypts the shared key with his private key

Asymmetric Encryption Algos

  • RSA

Symmetric Encryption

Use the same key to encrypt and decrypt

Used to (de)encrypt across the internet

Symmetric Encryption Algos

  • AES
    • AES-256

Last update: 2023-04-24