Cryptography

🏠 Home Page – Introduction to Cryptography

What is Cryptography?

Cryptography is the practice of protecting information by transforming it into a secure format. It ensures data confidentiality, integrity, and authenticity. On this website, you'll learn about three key concepts in cryptography:


Feature Hashing Encoding Encryption
Purpose Data integrity check Data formatting Data confidentiality
Reversible ❌ No (one-way) βœ… Yes βœ… Yes (with correct key)
Secure? βœ… Yes (for security) ❌ No βœ… Yes (with strong algorithm)
Common Use Password storage, blockchain URL, Base64, data transmission Secure messaging, data at rest
Example SHA-256, MD5 Base64, URL encoding AES, RSA



What is Hashing?

Hashing is the process of converting data (text, password, file) into a fixed-length (e.g., 256-bit) unique string using a specific algorithm. Hash functions are widely used in cryptography, password storage in databases, digital signature systems, and many other fields.



    Hashing Algorithms
  1. MD5 -> Message-Digest Algorithm 5
  2. SHA-1 -> Secure Hash Algorithm 1
  3. SHA-256 -> Secure Hash Algorithm 256
  4. SHA-512 -> Secure Hash Algorithm 512

Why is Hashing Important?

  1. Password Protection
    • Websites don't store user passwords directly; they store hashed versions.
    • During login, the entered password is hashed and compared with the stored hash.
  2. Data Integrity Verification
    • The hash of a downloaded file is compared with the original hash to ensure it hasn't been altered.
  3. Blockchain Technology
    • Bitcoin and other cryptocurrencies use the SHA-256 algorithm.

Security Notes

⚠ MD5 and SHA-1 – Can be cracked easily by hackers and should not be used in modern projects.
βœ… SHA-256 or SHA-512 – Currently considered secure and recommended.

If you have more questions πŸ€– you can ask the Chat Bot.


If you want to create a hash πŸ” go to Get Hash.

If you want to crack a hash πŸ” go to Crack Hash.

πŸ” Encryption – Protecting Data with Keys

What is Encryption?

Encryption is the process of converting data into an unreadable format using a special algorithm and key. Only those with the correct key can decrypt the data and access the original content.

🧩 Types of Encryption:

  1. Symmetric Encryption
    • Same key is used for both encryption and decryption.
    • Fast but key must be shared securely
    • Examples: AES (Advanced Encryption Standard), DES
  2. Asymmetric Encryption
    • Uses a pair: public key (to encrypt) and private key (to decrypt).
    • No need to share private key.
    • Examples: RSA (Rivest–Shamir–Adleman), ECC (Elliptic Curve Cryptography)

πŸ” Use Cases:


⚠️ Important Concepts:

πŸ”€ Encoding – Data Formatting for Transmission

What is Encoding?

Encoding is the process of converting data into a specific format for efficient transmission or storage. It's not for secrecy, but for readability and compatibility across systems.


πŸ”„ Common Encoding Methods:

  1. Base64 Encoding
    • Converts binary data to text.
    • Common in email attachments, JSON, images in HTML.
  2. URL Encoding
    • Converts special characters into a format usable in URLs.
    • Example: space β†’ %20
  3. HTML Encoding
    • Escapes characters to safely display them in HTML
    • Example: < becomes <
  4. Character Encoding
    • Translates characters into binary (ASCII, UTF-8, Unicode).
    • Supports multilingual content.

🧠 Why Encoding Is Important:


⚠️ Note:


  1. This website allows you to easily encode and decode text using Base64 format. Base64 Encode/Decode
  2. Use this tool to encode or decode special characters in URLs (e.g., %20 becomes a space). URL Encode/Decode