Delphi Pages Forums

Delphi Pages Forums (
-   DB-Aware (
-   -   DBMemo encryption (

worker17 03-16-2016 02:51 PM

DBMemo encryption
I am trying to encrypt the dbmemo contents using Turbopower lockbox open source. I want to decrypt the content before it is displayed, and encrypt it before it is posted. Searching the internet, the information I have says to do this at the GetText and SetText events of the dbmemo component. I do not see any such events.

How do I accomplish this scenario?

Using Delphi XE7 under Windows 7

Thanks for any insight you can provide.

Norrit 03-16-2016 03:11 PM

The GetText and SetText events are not part of the DBMemo, but are al the way back in the dataset. This has Fields/Columns or something similar.
Each TField should has the option to implement this GetText/SetText method. So in this case you're just looking at the wrong place

worker17 03-16-2016 03:52 PM

OK, thanks. If using the Dataset level, it would seem easier to just use the OnDataChange event to perform decryption and the OnUpdateData to do the encryption, instead of going further down the spiral.

Thanks for the help!

All times are GMT. The time now is 12:40 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.