Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CRYPTING TABLE

Status
Not open for further replies.

Lengliz

Programmer
Feb 15, 2005
29
TN
Hi,
I have a table USER.DBF where i store passwords and confidential data. I want the table to be crypted so not authorised person can't browse it using VFP.
I am using VFP6

Thank You
Mistral
 

A simple way to do this, without the use of API calls, use STRCONV() to change the passwords in your table. And convert it back when needed.
Code:
cExpression = 'password'
?STRCONV(cExpression, 13)  && gives you this value cGFzc3dvcmQ=
Var1 = 'cGFzc3dvcmQ='
?STRCONV(var1, 14)  && gives you 'password'


Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
If you're using XP or Win2k/2k3, you can use the builtin
encryption.

Right click on the file or folder that you want to encrypt,
select properties, click the advanced button, and check the
box labeled: "Encrypt contents to secure data".

The file or folder will be encrypted with the currently
logged in users' credentials.

Only the encrypting user/account will have access to the
file after that.

Darrell
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top