Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > DB-Aware

Lost Password?

Thread Tools Display Modes
Old 03-16-2016, 02:51 PM
worker17 worker17 is offline
Junior Member
Join Date: Sep 2013
Posts: 2
Question 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.
Reply With Quote
Old 03-16-2016, 03:11 PM
Norrit Norrit is offline
Join Date: Aug 2001
Location: Landgraaf
Posts: 7,335

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
Reply With Quote
Old 03-16-2016, 03:52 PM
worker17 worker17 is offline
Junior Member
Join Date: Sep 2013
Posts: 2

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!
Reply With Quote

dbmemo, encryption, lockbox

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 08:44 AM.

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