Skip to content

4Batul/Rail-Fence-Cypher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Rail Fence Cipher Java Program

A simple Java implementation of the Rail Fence Cipher, a transposition cipher that encrypts messages by arranging the characters in a zigzag pattern across multiple rails.

Features

  • Encrypts plaintext using the Rail Fence Cipher
  • Decrypts ciphertext back to plaintext
  • Customizable number of rails

How to Use

  1. Clone or download this repository.
  2. Compile the Java program:
javac RailFenceCipherSystem.java
  1. Run the program:
java RailFenceCipherSystem

Follow the prompts to enter your message and choose the number of rails for encryption or decryption.

  • Intuitive GUI: Easy-to-use interface for encryption and decryption
  • Customizable Rails: Choose the number of rails for the cipher
  • Real-time Results: Instant display of encrypted or decrypted messages
  • Input validation: Handles edge cases and invalid inputs gracefully

Demo Screenshot

GUI

License

This project is licensed under the MIT License. See the LICENSE file for details.


About

The Rail Fence Cipher is a simple transposition cipher that encrypts messages by writing the plaintext in a zigzag pattern across multiple "rails" (rows) and then reading the message row by row. It creates a scrambled version of the original text, making it more difficult to interpret without knowing the pattern or key (number of rails).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages