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?
Is there an option to save files encrypted?
-
- Posts: 18
- Joined: Tue May 28, 2013 9:38 am
-
- Site Admin
- Posts: 17564
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Posts: 81
- Joined: Mon Aug 29, 2005 5:00 am
I use the free library DCCrypt: http://www.cityinthesky.co.uk/opensource/dcpcrypt
-
- Posts: 18
- Joined: Tue May 28, 2013 9:38 am
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.
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.
-
- Site Admin
- Posts: 17564
- Joined: Sat Aug 27, 2005 10:28 am
- Contact: