mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-01-18 08:17:01 +00:00
relevant documentation added (#1725)
This commit is contained in:
parent
81f077adfc
commit
74a7b5f799
|
@ -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)))
|
||||
|
|
Loading…
Reference in New Issue
Block a user