Welcome to our Transposition Cipher Project! This project is all about implementing the classic transposition cipher in Python.
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. π
- Clone the repository to your local machine. πΎ
- Navigate to the project directory. π
- Run the
TranspositionCipher.py
file in your Python environment. π - To decrypt a message, create an instance of the
TranspositionCipher
class with the correct key and call thedecrypt_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!