Skip to content

Java implementations of classic ciphers (Caesar, Playfair, Hill) and modern cryptographic algorithms (Diffie-Hellman, RSA, Simplified DES, Simplified AES).

Notifications You must be signed in to change notification settings

CIPHER-VEDA/crypto-algorithms-java

Repository files navigation

🔐 crypto-algorithms-java

A collection of cryptographic algorithm implementations in Java, designed for both learning and experimentation. This repository is a practical resource for understanding how fundamental encryption, decryption, and key exchange algorithms function under the hood. It is suitable for students, educators, and developers interested in the core concepts of cybersecurity and cryptography.

📜 Included Algorithms

  • Caesar Cipher: A simple substitution cipher for classical text encryption and decryption.
  • Hill Cipher: A polygraphic substitution cipher that demonstrates the use of matrix operations in cryptography.
  • Playfair Cipher: A digraph substitution cipher used for securing text messages.
  • Simplified DES (SDES): A reduced-round version of the Data Encryption Standard, perfect for educational purposes to illustrate the principles of a block cipher.
  • Simplified AES: A lightweight implementation of the Advanced Encryption Standard, providing a high-level view of a more modern and robust block cipher.
  • RSA Algorithm: A widely used asymmetric encryption algorithm, based on the mathematical difficulty of factoring large prime numbers.
  • Diffie-Hellman Key Exchange: A secure method for establishing a shared secret key over an insecure communication channel.

🚀 Usage

These implementations are for educational purposes and should not be used in production applications. You can explore and execute each Java file directly within any standard Java development environment (IDE).

Example: Running a cipher

# Example for running the Caesar Cipher
javac CaesarCipher.java
java CaesarCipher

About

Java implementations of classic ciphers (Caesar, Playfair, Hill) and modern cryptographic algorithms (Diffie-Hellman, RSA, Simplified DES, Simplified AES).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages