DECRIPT AND CRIPT

DECRIPT AND CRIPT

Postby Silvio » Tue Apr 12, 2011 2:21 pm

i LIKE TO CRIPT AND DECRIPTA A DBF FILE FOR USE IT ONLY FROM FWH APPLICATION

ANY IDEA ?
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: DECRIPT AND CRIPT

Postby HunterEC » Wed Apr 13, 2011 5:31 am

Silvio:

The SIX driver has the following functions:
Sx_DbfEncrypt()
Sx_DbfDecrypt()

This RDD does the rest for you. I used it under DOS without problems. xHarbour (commercial) supports it.
HunterEC
 
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am

Re: DECRIPT AND CRIPT

Postby Silvio » Wed Apr 13, 2011 6:33 am

but this cript and decript all records I wish cript only one field of a record
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: DECRIPT AND CRIPT

Postby HunterEC » Wed Apr 13, 2011 7:06 am

Sylvio:

Clipper or Clipper Tools use to have the CRYPT() function. Check if it has been implemented in xHarbour. Also the SIX RDD have the Sx_decrypt() function.
HunterEC
 
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am

Re: DECRIPT AND CRIPT

Postby StefanHaupt » Wed Apr 13, 2011 7:20 am

Silvio,

in xHarbour there is a function called crypt ()

Code: Select all  Expand view
Crypt( <cString>, <cPassWord> ) --> cResult
 


You can save the crypted value to the field an decrypt it on reading

Code: Select all  Expand view
dbf->field := Crypt ("String", cPassword)

and

value := Crypt (dbf->field, cPassword)
kind regards
Stefan
StefanHaupt
 
Posts: 824
Joined: Thu Oct 13, 2005 7:39 am
Location: Germany

Re: DECRIPT AND CRIPT

Postby Silvio » Wed Apr 13, 2011 7:38 am

ok but then to decript it ?
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: DECRIPT AND CRIPT

Postby Otto » Wed Apr 13, 2011 9:30 am

Please search FIVEWIN samples for "Crypt" and you find working samples.
Regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6330
Joined: Fri Oct 07, 2005 7:07 pm

Re: DECRIPT AND CRIPT

Postby StefanHaupt » Wed Apr 13, 2011 9:46 am

Silvio wrote:ok but then to decript it ?


with the same command

Code: Select all  Expand view
cCrypt  := Crypt ("String", cPassword)  // crypt string

cDecrypt := Crypt (cCyrpt, cPassword) // decrypt string
kind regards
Stefan
StefanHaupt
 
Posts: 824
Joined: Thu Oct 13, 2005 7:39 am
Location: Germany

Re: DECRIPT AND CRIPT

Postby James Bott » Wed Apr 13, 2011 2:40 pm

I believe the SIX RDD has built-in, optional, encryption. I have not used it so I can't be of any further help on this.

Regards,
James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: DECRIPT AND CRIPT

Postby Carles » Wed Apr 13, 2011 4:31 pm

S,

The best solution -> ADS. You don't reinginiering, and it's free for local mode.
Salutacions, saludos, regards

"...programar es fácil, hacer programas es difícil..."

UT Page -> https://carles9000.github.io/
Forum UT -> https://discord.gg/bq8a9yGMWh
Skype -> https://join.skype.com/cnzQg3Kr1dnk
User avatar
Carles
 
Posts: 1134
Joined: Fri Feb 10, 2006 2:34 pm
Location: Barcelona

Re: DECRIPT AND CRIPT

Postby George » Wed Apr 13, 2011 4:45 pm

Silvio
I agree with Carles, ADS is the best solution for encripted database.
ADS is easy to learn; almost 100% compatible with your code and DBF files.

The ADS Data Dictionary is an advanced tool (also free), that includes also SQL, at the same level that most expensive relational databases.

Regards


George
George
 
Posts: 725
Joined: Tue Oct 18, 2005 6:49 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 105 guests