On Thu, 27 Mar 2008, Carlos Viola wrote:
> I do not need to encrypt memo fields. Encrypting only the table would be 
> enough.

So for your own use you can hack current dbf1.c code and disable protection
code. You will have to change:

line 640:
       fEncrypt ? !pArea->fTableEncrypted && !pArea->fHasMemo :
to:
       fEncrypt ? !pArea->fTableEncrypted :

line 1701:
   pArea->fEncrypted = pArea->pCryptKey != NULL && !pArea->fHasMemo;
to:
   pArea->fEncrypted = pArea->pCryptKey != NULL;

line 2208:
         if( pArea->bCryptType == DB_CRYPT_SIX && !pArea->fHasMemo )
to:
         if( pArea->bCryptType == DB_CRYPT_SIX )

and remove line 2193:
         if( !pArea->fHasMemo )

But please remember to keep such hacked RDD in the future because
you will need it to decode data when I'll add SIX3 compatible
memo encryption. Otherwise you will not be able to decode your memo
data.

best regards,
Przemek
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to