I am using Cryptor 4.0 with the fll's for VFP7 and have created the following routine. My goal is to have the tables encrypted on disk and usable within my application.
PRIV gaTables
DIME gaTables(1)
gnDbcnumber = ADIR(gaTables, '*.dbf')
FOR nCount = 1 TO gnDbcnumber
lcFile = gaTables(nCount,1)
CRYPTOR CODE EXECUTES HERE
ENDFOR
1) = crypt_encode('&lcfile','Password',.f.,'',256) &&& Successfully encrypts/unencrypts data
2) cryptor([&lcfile],"Password",0,256) &&& Successfully accesses data
3) cryptoff([&lcfile],"Password",0,256) &&& Fails to restore encryption
I do not understand why the syntax is in a different format between 1 and 2, but it works.
Syntax 3 does not work.
Thanks for the help!
dg