Cryptography Basics

Cryptography is an art of hiding important or valuable information in a form which general users can’t understand. It’s a process of securing data and information.

There are three types of cryptography.

  1. Symmetric cryptography: When we will solve CTF problems , we will get this types of cryptography a large numbers. Symmetric cryptography where always has a common key for encryption and decryption. We have to use the common key to decrypt the encrypted message.

     Common types of symmetric cryptography which we face in CTF challenges are:

  1. Caesar Cipher 

  2. Rot13 

  3. Vigenere Cipher 



  4. Morse Code

  5. Bacon Cipher

  6. Alphabetical Substitution

    The tools we use for decryption are:

  1. CyberChef (website)

  2. Caesar cipher(website)

vigenere solver (website)
    
      2. Hash Function Cryptography: There is no common key value like as symmetric cryptography. But in this cryptography, there has the equal length of the plain text and cipher text.

Common types of hash function cryptography which we face in CTF challenges are:

  1. MD5 

  2. SHA-1
  3. SHA-256
  4. Whirephool
  5. Shake

  6. HAS-160

Tools:

  1. CyberChef

  2. Hashcat(Default on Kali Linux OS)

  3. John the ripper (Default on Kali Linux OS)

  4. Online tools (Search Google)

    3.Asymmetric Cryptography: In this cryptography, there are two key, private and public key. For decryption, these two key are used. Public key is known by everyone but private key is only known by the receiver who wants to decrypt the encryption.

The common asymmetric cryptography example is RSA algorithm.

Tools:

  1. Openssl (Default on Kali Linux OS)
  2. Online tools (Search Google)
Happy Hacking H4ck3r😇

Comments

Popular posts from this blog

My Starting 001

SQL injection attack, querying the database type and version on Oracle(Portswigger Lab 07)

SQL Based on Portswigger Lab 3