Mam funkcje na kodowanie i na dekodowanie:
type top=1..2//1: dodawanie, 2: odejmowanie
function transcode(S,k:byte;op:top):byte;
var
i:integer;
begin
i:=0;
case op of
1:
begin
i:=s+k;
if i>255 then
i:=i-255;
if i255 then
i:=i-255;
if i