Hi,
My program uses a database (SQLite) and I would like to protect the database with a password, as there is very important and secret data in there. How can I "hide" the password in the code, to prevent it from being captured during decompilation, or something like that? I must point that the password has to be stored somewhere in the program. Have you got any ideas?
Bye

1] In SQL server use SQL server authentication mode and set your own username and password.

2] In C# u provide connection string to the database of the following form.
Data Source=myServerAddress;Initial Catalog=myDataBase;User Id=myUsername;Password=myPassword;

3] now here instead of giving hardcoded values of uid and password set some variables and accept its value from user when u start executing ur code.

This is one way of protecting password i know....