Path: csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Wolfgang Riedmann" Newsgroups: comp.lang.clipper.visual-objects Subject: Re: Encrypting data in DBF file Date: Mon, 19 Jun 2017 14:01:58 +0200 Lines: 58 Message-ID: References: <691ec839-e8ee-4a71-a067-a8c4e1ca70b3@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Trace: individual.net 2L1Qvc0balez/50aWgJKbQ2xIlSOu7bxsYVtr54/yJnPQGIJA= Cancel-Lock: sha1:HQWnJbYvtMQs28nFLdZ9XPG+56k= User-Agent: XanaNews/1.18.1.6 Xref: csiph.com comp.lang.clipper.visual-objects:10693 Hi Simon, then try to use NoIVarGet()/NoIVarPut() methods of the server. Maybe the StdDataWindow works in a different manner and tries to use the access/assign variables of the server class. Wolfgang simon@abersoftware.co.uk wrote: > On Monday, June 19, 2017 at 9:52:44 AM UTC+1, > si...@abersoftware.co.uk wrote: > > Hi All, > > > > Anyone have any thoughts on best way to encrypt data fields that > > are stored in DBF file. > > > > The reason is just to stop people looking at the DBF file from > > outside the application. > > > > My initial thoughts were to subclass DbServer and overwrite the > > fieldget / fieldput methods to encrypt / decrypt the data. I've > > created an EncDbServer Class (copy of DbServer from SDK) and > > updated the Fieldget / Fieldput methods. > > > > I have a StdDataWindow that I open and pass in the EncDbServer > > object. This doesn't seem to use the fieldget / fieldput methods > > from the EncDbServer. > > > > Is this the best approach or should I just use my own gather / > > scatter methods for this data window? > > > > Appreciate any ideas or thoughts on best way to achieve this. > > > > Simon > > Hi Wolfgang, > Thanks for the reply. > > I did try that at first and had the same results - the data window > methods dont use the fieldget from the dbserver. (I was trying to cut > out some of the inheritance to see if I could find out what actual > method was bring called.) > > I use the bBrowser on the same window and that control behaves > properly! > > I guess its using a datawindow:fieldget() but have tried catching it > there but no luck. > > Simon --