mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-03-19 21:19:47 +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…
x
Reference in New Issue
Block a user