: : Is it possible to encrypt/decrypt a file while saving/opening it in a RichEdit component. Could someone let me have a routine to do it if its possible.
: : Thanx
: :
: :
: :
:
: how about descending a class from TRichEdit and overwriting SaveToFile and LoadFromFile procedures?
:
:
: procedure TMyRichEdit.SaveToFile;
: begin
: {here you go through the TStringList object and encrypt it with whatever coding method you want}
:
: inherit;
: end;
:
:
: and the same thing with LoadFromFile
You could also use SaveToStream within SaveToFile and encrypt a stream using free stream encryption code from the Internet and then save the stream to file. This way you can also use your favorite stream encryption algorithm.