Page 1 of 1

RTF File Encryption

PostPosted: August 30th, 2011, 2:03 pm
by Blod
Hi to All,

Is there a known problem in trying to encrypt/Decrypt an RTF file?
I'm only using a low security encryption and it works Ok but it is removing any special font attributes that have been set and displaying results as Plaintext even though plaintext is set to false.


Thanks

Blod

S := rtf1.Text;
For I:= 1 to Length(S) do
S[I] := Chr(Ord(S[I]) xor $ff);
rtf1.Text := S;
rtf1.Lines.SaveToFile('hold.txt');
end;

Re: RTF File Encryption

PostPosted: November 5th, 2011, 3:27 am
by sanjai
hi thanks for the information

Re: RTF File Encryption

PostPosted: November 6th, 2011, 5:21 pm
by Blod
Er, you're Welcome.