Is there an option to save files encrypted?

ScaleRichView support and discussion (TRichView add-on for WYSIWYG editing)
Post Reply
MPirnstill
Posts: 18
Joined: Tue May 28, 2013 9:38 am

Is there an option to save files encrypted?

Post by MPirnstill »

Hi,

the Situation is, that typing tests are writing with my program, that uses the ScaledRichview component. These test are saved encrypted, to prevent Manipulation afterwards. I only can be reloaded into my program in read only state.

But now I have a Problem. The encryption dll I use expects simple text, but this way I loose the line breaks and paragraphs.

Is there an Option to save text from the richview component in some Kind of encrypted form, so it will be save from Manipulations?
Sergey Tkachenko
Site Admin
Posts: 17534
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

You need to use an external encryption library that supports arbitrary binary data.
hruslan2000
Posts: 81
Joined: Mon Aug 29, 2005 5:00 am

Post by hruslan2000 »

MPirnstill
Posts: 18
Joined: Tue May 28, 2013 9:38 am

Post by MPirnstill »

Thanks for the reply hruslan.

In the meantime I found out that the line breaks, that are in the string I get from GetAllText are included and that my DLL encrypts and decrypts the text and line breaks correctly.

I seen the text in the same Format in the debug window.
So I must be using the wrong method to get the text back into the TRichviewEdit.

I simply used Add, but that isn't appearently the right way.
I will search the help, but if anyone knows the right method
I would appreciate a hint. ;-)
Sergey Tkachenko
Site Admin
Posts: 17534
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Use AddTextNL to add multiline text
MPirnstill
Posts: 18
Joined: Tue May 28, 2013 9:38 am

Post by MPirnstill »

It worked. Thanks.
Post Reply