>Does anyone have a simple example of encrypting and de-encrypting a Foxpro dbf?
I
strongly advice against encrypting the dbf. Your application will be so much slower, and difficult to maintain. Bite the bullet, and use for instance one of the free versions of MSSQL to store the data.