Skip to content
Menu
myCloud myCloud

Personal short notes about Cloud

  • XMPie
  • AWS
    • AWS Topics
    • AWS Architecture
    • AWS CLI
    • AWS Health
    • AWS Policies
    • AWS Cost
  • CHEAT SHEETS
myCloud myCloud

Personal short notes about Cloud

SSL/TLS

By mikado on November 7, 2022November 8, 2022

The primary mechanism used by SSL/TLS is asymmetric encryption with cipher suites.

Symmetric Encryption

  • Same key used for encrypting and decrypting data
AdvantagesDisadvantages
fast, low resource usageSame key used for encryption/decryption
Simple operationKey must be distributed using an already established, secure channel
SecureDifferent key for different parties – difficult key management/distribution
Cannot authenticate users

Symetric encryption

Asymmetric Encryption

or Public Key Cryptography, uses key pairs:

  • a public key
  • a private key.
AdvantagesDisadvantages
Key distribution is easySlower than symmetric encryption
AuthenticityNeeds more resources
Integrity
Security
asymetric encryption

Message Authentication Code (MAC)

  • Also called a checksum, cryptographic checksum, or protected checksum.
  • Method used to check authenticity and integrity of a message
  • 2 input parameters:
    • a secret key
    • a message of arbitrary length
  • The result is called a tag
  • If the MAC tag of the sender and the calculated MAC tag of the recipient match, nobody tampered with the message. 
Message Authentication Code (MAC)

Hash-Based Message Authentication Code (HMAC)

HMAC is a type of MAC that uses a hash function. Eg. of HMAC that uses the SHA256 hash algorithm.

HMAC_SHA256("s3cr3tk3y","Hello World") = 2d9615ee921dab63c7c4c839842703fe338db46fdf17593a681bcee2c52721de
Hash Based Message Authentication Code (HMAC)

Ciphers

  • methods/algorithms used to encrypt and decrypt data
  • provided as packages: Cipher Suites
Electronic Code Book (ECB)
Cipher Block Chaining (CBC)
Cipher Feedback (CFB)
Output feedback
Counter Mode (CTR)
Category: CHEAT SHEETS

Categories

  • AWS (4)
  • AWS Architecture (8)
  • AWS CLI (5)
  • AWS Cost (3)
  • AWS Health (4)
  • AWS Policies (2)
  • AWS Topics (24)
  • CHEAT SHEETS (16)
  • Container (21)
  • Datadog (4)
  • Jenkins (2)
  • Linux (9)
  • Microsoft (7)
  • Python (1)
  • SCRIPTS (9)
  • Terraform (5)
  • XMPie (6)
©2025 myCloud
Click to Copy