Click to See Complete Forum and Search --> : Password for msaccess file
selvakumar_82
April 30th, 2009, 02:26 AM
How to create a password protected msaccess(.mdb) file using C#
is it possible to create a password protected for the already created mdb file using C#
JonnyPoet
April 30th, 2009, 12:34 PM
How to create a password protected msaccess(.mdb) file using C#
is it possible to create a password protected for the already created mdb file using C#This is more a problem of the connection string then a problem of C#
look here for example
http://www.connectionstrings.com/mysql or here
http://www.codeproject.com/KB/database/connectionstrings.aspx
So simple add the password to your database for example in an access databse open menue->extras_>security ->password and set the password
Then access it using the correct connectionstring
Teranoz
May 4th, 2009, 07:14 AM
If you want to protect the data in the db better try another type of db.
There are too many password cracker tools for access free available.
JonnyPoet
May 4th, 2009, 08:21 AM
If you want to protect the data in the db better try another type of db.
There are too many password cracker tools for access free available.
And dont store it hardcoded in your database. Best way is you have it scrambeld there and it needs to be descrambled by your program before it is used for accessing your database.
If it is an hardcoded string anywhee in your program hacking your code will easily bring it up within 10 minutes
selvakumar_82
May 5th, 2009, 01:15 AM
Thanks all for your valuable reply
You've mentioned that the password need to be scrambled and anyways descrambling the password and assigning to string and passing the value is a round process than hard code right?
Please guide with your views
JonnyPoet
May 5th, 2009, 04:04 AM
Thanks all for your valuable reply
You've mentioned that the password need to be scrambled and anyways descrambling the password and assigning to string and passing the value is a round process than hard code right?
Please guide with your viewsIwould store it in a scrambled way anywhere in a hidden potected area of the harddisc ( I'm sorry I dont know how this is exactly named in English but using C# you are able to read and write into such areas. So if it would be found by someone by scanning the haddisc, nobody would be able to know for which progam it is and that it is needed as a password fo a database database. This way you have protection by
a) it is not part of your progam
b) it is in a hidden area, only the progam knows to find it
c) it is scrambeld there so even to find it needs to have access to the progam to descramble it before it can be used
So the only hadcoded adress would be the adress of the location of the hidden protected section of your harddisc -
and if you like you can have this name also stored as a scrambled string descrambled at runtime only.
selvakumar_82
May 7th, 2009, 06:27 AM
Thanks for your Sugesstion
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.