aboutsummaryrefslogtreecommitdiff
path: root/ls47.py
diff options
context:
space:
mode:
Diffstat (limited to 'ls47.py')
-rwxr-xr-xls47.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/ls47.py b/ls47.py
index f548514..cb9f555 100755
--- a/ls47.py
+++ b/ls47.py
@@ -106,10 +106,8 @@ def encrypt(key, plaintext):
ciphertext += c
key = rotate_right(key, pp[0], 1)
- mp = rotate_marker_right(mp, pp[0], 1)
cp = find_pos(key, c)
key = rotate_down(key, cp[1], 1)
- mp = rotate_marker_down(mp, cp[1], 1)
mp = add_pos(mp, find_ix(c))
return ciphertext
@@ -126,10 +124,8 @@ def decrypt(key, ciphertext):
plaintext += p
key = rotate_right(key, pp[0], 1)
- mp = rotate_marker_right(mp, pp[0], 1)
cp = find_pos(key, c)
key = rotate_down(key, cp[1], 1)
- mp = rotate_marker_down(mp, cp[1], 1)
mp = add_pos(mp, find_ix(c))
return plaintext