Skip to content

justsima/Encryption-and-Decryption-in-Python-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ Transposition Cipher Project πŸš€

Welcome to our Transposition Cipher Project! This project is all about implementing the classic transposition cipher in Python.

πŸ“š What is a Transposition Cipher? πŸ“š

A transposition cipher is a method of encryption by which the positions held by units of plaintext are shifted according to a regular system, so that the ciphertext constitutes a permutation of the plaintext. πŸ”„

πŸ’» How to Use πŸ’»

  1. Clone the repository to your local machine. πŸ’Ύ
  2. Navigate to the project directory. πŸ“
  3. Run the TranspositionCipher.py file in your Python environment. 🐍
  4. To decrypt a message, create an instance of the TranspositionCipher class with the correct key and call the decrypt_message method with the encrypted message.
# Initialize the key
key = 7  # Replace with the correct key

# Initialize encrypted message
message = 'pe\nlwy crt h iarmpeo akohw hncosrmr\nt veo\nigkb ostot\neirbt .l\nb hfap rtytb' 

# Create a TranspositionCipher instance with the key
cipher = TranspositionCipher(key)

# Decrypt the message
decrypted_message = cipher.decrypt_message(message)

# Print the decrypted message
print(decrypted_message)

## πŸ“ Requirements πŸ“

- Python 3.10.11 
- Jupyter Notebook πŸ““

## πŸ™ Contributing πŸ™

Contributions are welcome! 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published