DECRIPT AND CRIPT

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

DECRIPT AND CRIPT

Post by Silvio »

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

ANY IDEA ?
Best Regards, Saludos

Falconi Silvio
HunterEC
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am

Re: DECRIPT AND CRIPT

Post by HunterEC »

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.
User avatar
Silvio
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: DECRIPT AND CRIPT

Post by Silvio »

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

Falconi Silvio
HunterEC
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am

Re: DECRIPT AND CRIPT

Post by HunterEC »

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.
StefanHaupt
Posts: 824
Joined: Thu Oct 13, 2005 7:39 am
Location: Germany

Re: DECRIPT AND CRIPT

Post by StefanHaupt »

Silvio,

in xHarbour there is a function called crypt ()

Code: Select all

Crypt( <cString>, <cPassWord> ) --> cResult
 
You can save the crypted value to the field an decrypt it on reading

Code: Select all

dbf->field := Crypt ("String", cPassword)

and 

value := Crypt (dbf->field, cPassword)
kind regards
Stefan
User avatar
Silvio
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: DECRIPT AND CRIPT

Post by Silvio »

ok but then to decript it ?
Best Regards, Saludos

Falconi Silvio
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Re: DECRIPT AND CRIPT

Post by Otto »

Please search FIVEWIN samples for "Crypt" and you find working samples.
Regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org

********************************************************************
StefanHaupt
Posts: 824
Joined: Thu Oct 13, 2005 7:39 am
Location: Germany

Re: DECRIPT AND CRIPT

Post by StefanHaupt »

Silvio wrote:ok but then to decript it ?
with the same command

Code: Select all

cCrypt  := Crypt ("String", cPassword)  // crypt string

cDecrypt := Crypt (cCyrpt, cPassword) // decrypt string 
kind regards
Stefan
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Re: DECRIPT AND CRIPT

Post by James Bott »

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
Carles
Posts: 937
Joined: Fri Feb 10, 2006 2:34 pm
Location: Barcelona
Contact:

Re: DECRIPT AND CRIPT

Post by Carles »

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..."

https://modharbour.app
https://modharbour.app/compass
https://forum.modharbour.app
George
Posts: 710
Joined: Tue Oct 18, 2005 6:49 pm

Re: DECRIPT AND CRIPT

Post by George »

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
Post Reply