aboutsummaryrefslogtreecommitdiff
path: root/cipher.sts
diff options
context:
space:
mode:
authorAleksey Veresov <aleksey@veresov.pro>2020-10-17 18:24:54 +0300
committerAleksey Veresov <aleksey@veresov.pro>2020-10-17 18:24:54 +0300
commit370a55aa3b2480f87a90a83d7b8127f9159af750 (patch)
tree9bbb89f1bf9b361b3c1217a89ea2f3676fb6578d /cipher.sts
parente89a8b301a0aa57b537ca65fa6019f4d1fa69806 (diff)
downloadcryptrobber-370a55aa3b2480f87a90a83d7b8127f9159af750.tar
cryptrobber-370a55aa3b2480f87a90a83d7b8127f9159af750.tar.xz
cryptrobber-370a55aa3b2480f87a90a83d7b8127f9159af750.zip
Framework completed. =)
Diffstat (limited to 'cipher.sts')
-rw-r--r--cipher.sts8
1 files changed, 5 insertions, 3 deletions
diff --git a/cipher.sts b/cipher.sts
index cdcdc30..c87b67a 100644
--- a/cipher.sts
+++ b/cipher.sts
@@ -3,8 +3,10 @@ defword cipher
2 get as cipher.password
1 get as cipher.len
0 get as cipher.pos
- cipher.pos @ cipher.password + @ cipher.byte @ xor cipher.byte !
- cipher.pos @ 1 + cipher.pos !
- cipher.pos @ cipher.len = if 0 cipher.pos ! fi
+ cipher.pos @ word_size mul cipher.password + @
+ cipher.byte @ xor
+ cipher.byte !
+ cipher.pos @ 0 = if cipher.len cipher.pos ! fi
+ cipher.pos @ 1 - cipher.pos !
drop drop drop
exit