yep, it's wrong.
Code:
   ;if decrypting:

; length of table minus keychar-index plus textchar-index plus word-shift minus one mod length of table.
; add one to that.
;if encrypting:
; keychar-index plus textchar-index plus word-shift minus one mod length of table. plus one.

_________________________
!

download KiXnet