Solved

Protection of .mdb files

Posted on 2002-06-14
4
191 Views
Last Modified: 2010-05-02
How to protect my microsoft database file and open it from my visaul basic project.

Please: not with passowrd protection, because there are a lot of easy to use haker programs to know my complicated password

elzohry
0
Comment
Question by:elzohry
4 Comments
 
LVL 22

Expert Comment

by:rspahitz
ID: 7079525
Well, the other way is to use the VB program to encrypt and decrypt every piece of data going through the DB.

After you set up your fields in the table, have each field call an encrypt routine before being Inserted or Updated such as this:

strSQL = "Update tblXXX Set field1 = " & EncryptData(txtField1.Text) & ", field2 = " & EncryptData(txtField2.Text)
...

And decrypt when retrieved:
strSQL = "Select field1, field2 from tblXXX"
...
txtField1.Text = DecryptData(rstYYY.Field("field1").Value)
txtField2.Text = DecryptData(rstYYY.Field("field2").Value)

Private function EncryptData(DataToEncrypt as String) as String
' encryption routine of your choice
End function

Private function DecryptData(DataToDecrypt as String) as String
' decryption routine of your choice
End function

0
 

Author Comment

by:elzohry
ID: 7079920
is there any other way ,
The Ecryption will make my Database So slow .
I used lot of memo Fields
Thanks
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 7080080
So, migrate to SQL Server/Oracle/informix or other one.
0
 
LVL 6

Accepted Solution

by:
pierrecampe earned 50 total points
ID: 7080191
pasword protection on access db's is easely bypassed
but i yet have to encounter someone who could get past user-lever security on a access db
i suppose you do not have msaccess so look here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndao/html/daotoadoupdate_topic7.asp
 
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question