From 1eb29c783dfec991548d2c189efade60de8a7d7e Mon Sep 17 00:00:00 2001 From: tania-cmyk Date: Sun, 2 Feb 2020 15:28:33 +0530 Subject: [PATCH] relevant documentation added --- ciphers/transposition_cipher.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ciphers/transposition_cipher.py b/ciphers/transposition_cipher.py index b6c9195b5dee..3b69d6b99f67 100644 --- a/ciphers/transposition_cipher.py +++ b/ciphers/transposition_cipher.py @@ -1,6 +1,11 @@ import math - +''' +In cryptography, the TRANSPOSITION cipher is a method of encryption where the +positions of plaintext are shifted a certain number(determined by the key) that +follows a regular system that results in the permuted text, known as the encrypted +text. The type of transposition cipher demonstrated under is the ROUTE cipher. +''' def main(): message = input("Enter message: ") key = int(input("Enter key [2-%s]: " % (len(message) - 1)))