Skip to content

Commit 74a7b5f

Browse files
authored
relevant documentation added (TheAlgorithms#1725)
1 parent 81f077a commit 74a7b5f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ciphers/transposition_cipher.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
import math
22

3-
3+
'''
4+
In cryptography, the TRANSPOSITION cipher is a method of encryption where the
5+
positions of plaintext are shifted a certain number(determined by the key) that
6+
follows a regular system that results in the permuted text, known as the encrypted
7+
text. The type of transposition cipher demonstrated under is the ROUTE cipher.
8+
'''
49
def main():
510
message = input("Enter message: ")
611
key = int(input("Enter key [2-%s]: " % (len(message) - 1)))

0 commit comments

Comments
 (0)