RTF File Encryption

Please discuss general Delphi programming topics here.

RTF File Encryption

Postby Blod » 30/08/11 14:03

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;
Blod
Junior Member
Junior Member
 
Posts: 33
Joined: 05/06/08 12:54

Re: RTF File Encryption

Postby sanjai » 05/11/11 03:27

hi thanks for the information
sanjai
Member
Member
 
Posts: 2
Joined: 05/11/11 03:26

Re: RTF File Encryption

Postby Blod » 06/11/11 17:21

Er, you're Welcome.
Blod
Junior Member
Junior Member
 
Posts: 33
Joined: 05/06/08 12:54


Return to Delphi Programming

Who is online

Users browsing this forum: No registered users and 0 guests