thank you Klaus01 , now it works ( what a worse error i did in forgetting the f1 reposition )....
the
dec result is based on the DecryptStream() result .
Zitat:
if DecryptStream(inStream,outStream,instream.Size) then {* dec :=True otherwise Dec:=False*}