fordraiders
Programmer
To All,
I have the following cd.prg file crypting two fields in my clipper table.
cattest2.dbf
******** start code ********
use cattest2
? time()
do while .not. eof()
? recno()
cmfrnum = cattest2->mfrnum
cvar := crypt("&cmfrnum", "brittany18monthsalex"
replace cattest2->mfrnum with cvar /*rypt("cmfrnum", "brittany18monthsalex"
*/
cwwgmfrnum = cattest2->wwgmfrnum
Cvar2 := crypt("&cwwgmfrnum", "dietra25yearsmichelle"
replace cattest2->wwgmfrnum with cvar2 /*rypt("cwwgmfrnum", "dietra25yearsmichelle"
*/
skip
enddo
? time()
goto top
@ 25, 30 say 'three of five functions down'
index on cattest2->mfrnum to cattest2
? TIME()
INDEX ON CATTEST2->ITEM TO ITEM
? TIME()
close all
quit
********** end code **********
PROBLEM:
I'am trying to reverse the crypting by decrypting the fields again with this code.
********** start code *********
use cattest2
? time()
do while .not. eof()
? recno()
cmfrnum = cattest2->mfrnum
cvar := decrypt("&cmfrnum", "brittany18monthsalex"
replace cattest2->mfrnum with cvar /*decrypt("cmfrnum", "brittany18monthsalex"
*/
cwwgmfrnum = cattest2->wwgmfrnum
Cvar2 := decrypt("&cwwgmfrnum", "dietra25yearsmichelle"
replace cattest2->wwgmfrnum with cvar2 /*decrypt("cwwgmfrnum", "dietra25yearsmichelle"
*/
skip
enddo
? time()
goto top
@ 25, 30 say 'three of five functions down'
index on cattest2->mfrnum to cattest2
? TIME()
INDEX ON CATTEST2->ITEM TO ITEM
? TIME()
close all
quit
************ end code **************
What I get is a partial decryption and the original cryption is still in the field.
example:
@#$%^
After code
3456@#$%^
I DO NOT NEED the original cryption code still in the field.
Thanks
fordraiders
I have the following cd.prg file crypting two fields in my clipper table.
cattest2.dbf
******** start code ********
use cattest2
? time()
do while .not. eof()
? recno()
cmfrnum = cattest2->mfrnum
cvar := crypt("&cmfrnum", "brittany18monthsalex"
replace cattest2->mfrnum with cvar /*rypt("cmfrnum", "brittany18monthsalex"
cwwgmfrnum = cattest2->wwgmfrnum
Cvar2 := crypt("&cwwgmfrnum", "dietra25yearsmichelle"
replace cattest2->wwgmfrnum with cvar2 /*rypt("cwwgmfrnum", "dietra25yearsmichelle"
skip
enddo
? time()
goto top
@ 25, 30 say 'three of five functions down'
index on cattest2->mfrnum to cattest2
? TIME()
INDEX ON CATTEST2->ITEM TO ITEM
? TIME()
close all
quit
********** end code **********
PROBLEM:
I'am trying to reverse the crypting by decrypting the fields again with this code.
********** start code *********
use cattest2
? time()
do while .not. eof()
? recno()
cmfrnum = cattest2->mfrnum
cvar := decrypt("&cmfrnum", "brittany18monthsalex"
replace cattest2->mfrnum with cvar /*decrypt("cmfrnum", "brittany18monthsalex"
cwwgmfrnum = cattest2->wwgmfrnum
Cvar2 := decrypt("&cwwgmfrnum", "dietra25yearsmichelle"
replace cattest2->wwgmfrnum with cvar2 /*decrypt("cwwgmfrnum", "dietra25yearsmichelle"
skip
enddo
? time()
goto top
@ 25, 30 say 'three of five functions down'
index on cattest2->mfrnum to cattest2
? TIME()
INDEX ON CATTEST2->ITEM TO ITEM
? TIME()
close all
quit
************ end code **************
What I get is a partial decryption and the original cryption is still in the field.
example:
@#$%^
After code
3456@#$%^
I DO NOT NEED the original cryption code still in the field.
Thanks
fordraiders